com.aspose.note

Class Margins

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Margins>


    public class Margins
    extends com.aspose.ms.lang.Struct<Margins>
    implements com.aspose.ms.System.IEquatable<Margins>

    Specifies the dimensions of the margins of a node.

    • Field Detail

      • Empty

        public static final Margins Empty

        The empty margins.

    • Constructor Detail

      • Margins

        public Margins()
      • Margins

        public Margins(float left,
                       float right,
                       float top,
                       float bottom)

        Initializes a new instance of the Margins struct with the specified left, right, top, and bottom margins.

        Parameters:
        left - The left margin width.
        right - The right margin width.
        top - The top margin width.
        bottom - The bottom margin width.
    • Method Detail

      • op_Equality

        public static boolean op_Equality(Margins lhs,
                                          Margins rhs)

        Tests whether two T:Margins structures are equal.

        Parameters:
        lhs - The T:Margins structure.
        rhs - The T:Margins structure to be compared with.
        Returns:
        The bool.
      • op_Inequality

        public static boolean op_Inequality(Margins lhs,
                                            Margins rhs)

        Tests whether two T:Margins structures are not equal.

        Parameters:
        lhs - The T:Margins structure.
        rhs - The T:Margins structure to be compared with.
        Returns:
        The bool.
      • equals

        public boolean equals(Margins other)
      • equals

        public boolean equals(Object obj)

        Tests whether two T:Margins structures are equal.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<Margins>
        Overrides:
        equals in class Object
        Parameters:
        obj - Any object.
        Returns:
        The bool.
      • getLeft

        public float getLeft()

        Gets or sets the left margin width.

      • setLeft

        public void setLeft(float value)

        Gets or sets the left margin width.

      • getRight

        public float getRight()

        Gets or sets the right margin width.

      • setRight

        public void setRight(float value)

        Gets or sets the right margin width.

      • getTop

        public float getTop()

        Gets or sets the top margin width.

      • setTop

        public void setTop(float value)

        Gets or sets the top margin width.

      • getBottom

        public float getBottom()

        Gets or sets the bottom margin width.

      • setBottom

        public void setBottom(float value)

        Gets or sets the bottom margin width.

      • CloneTo

        public void CloneTo(Margins that)
        Specified by:
        CloneTo in class com.aspose.ms.System.ValueType<Margins>
      • Clone

        public Margins Clone()
        Specified by:
        Clone in class com.aspose.ms.System.ValueType<Margins>