com.aspose.note.hierarchy

Class LayoutAlignment



  • public class LayoutAlignment
    extends Object

    The layout alignment.

    • Constructor Detail

      • LayoutAlignment

        public LayoutAlignment()

        Initializes a new instance of the LayoutAlignment class.

      • LayoutAlignment

        public LayoutAlignment(byte horizontalAlignmen,
                               byte horizontalMargin,
                               byte verticalAlignment,
                               byte verticalMargin,
                               boolean isValid)

        Initializes a new instance of the LayoutAlignment class.

        Parameters:
        horizontalAlignmen - The horizontal alignmen.
        horizontalMargin - The horizontal margin.
        verticalAlignment - The vertical alignment.
        verticalMargin - The vertical margin.
        isValid - The is valid.
    • Method Detail

      • getAlignment

        public static LayoutAlignment getAlignment(int horizontalAlignment)

        Gets layout alignment by horizontal alignment.

        Parameters:
        horizontalAlignment -
      • getParagraphAlignment

        public static byte getParagraphAlignment(int horizontalAlignment)

        Gets paragraph alignment by horizontal alignment.

        Parameters:
        horizontalAlignment -
      • getHorizontalAlignment

        public byte getHorizontalAlignment()

        Gets the horizontal alignment of the content within the parent node. 1 -> Left 2 -> Center 3 -> Right 4 -> Left, if the page is left-to-right; right, if the page is right-to-left 5 -> Right, if the page is left-to-right; left, if the page is right-to-left

      • setHorizontalAlignment

        public void setHorizontalAlignment(byte value)

        Gets the horizontal alignment of the content within the parent node. 1 -> Left 2 -> Center 3 -> Right 4 -> Left, if the page is left-to-right; right, if the page is right-to-left 5 -> Right, if the page is left-to-right; left, if the page is right-to-left

      • getHorizontalMargin

        public byte getHorizontalMargin()

        Gets whether the content is aligned to the left or right margin of the page 0 -> Left to right. Right 0 -> Right to left. Left 1 Left to right. Left 1 Right to left. Right

      • setHorizontalMargin

        public void setHorizontalMargin(byte value)

        Gets whether the content is aligned to the left or right margin of the page 0 -> Left to right. Right 0 -> Right to left. Left 1 Left to right. Left 1 Right to left. Right

      • getVerticalAlignment

        public byte getVerticalAlignment()

        Gets the vertical alignment of the content within the parent node. 0 -> Bottom 1 -> Top

      • setVerticalAlignment

        public void setVerticalAlignment(byte value)

        Gets the vertical alignment of the content within the parent node. 0 -> Bottom 1 -> Top

      • getVerticalMargin

        public byte getVerticalMargin()

        Gets whether the content is aligned to the top or bottom of the page margin. 0 Bottom margin. 1 Top margin.

      • setVerticalMargin

        public void setVerticalMargin(byte value)

        Gets whether the content is aligned to the top or bottom of the page margin. 0 Bottom margin. 1 Top margin.

      • isValid

        public boolean isValid()

        A bit that specifies whether the value of the LayoutAlignment type is valid.

      • setValid

        public void setValid(boolean value)

        A bit that specifies whether the value of the LayoutAlignment type is valid.

      • equals

        public boolean equals(Object obj)

        The equals.

        Overrides:
        equals in class Object
        Parameters:
        obj - The obj.
        Returns:
        The bool.
      • hashCode

        public int hashCode()

        The get hash code.

        Overrides:
        hashCode in class Object
        Returns:
        The int.
      • op_Equality

        public static boolean op_Equality(LayoutAlignment left,
                                          LayoutAlignment right)

        The ==.

        Parameters:
        left - The left.
        right - The right.
        Returns:
      • op_Inequality

        public static boolean op_Inequality(LayoutAlignment left,
                                            LayoutAlignment right)

        The !=.

        Parameters:
        left - The left.
        right - The right.
        Returns: