public class LayoutAlignment extends Object
The layout alignment.
Constructor and Description |
---|
LayoutAlignment()
Initializes a new instance of the
LayoutAlignment class. |
LayoutAlignment(byte horizontalAlignmen,
byte horizontalMargin,
byte verticalAlignment,
byte verticalMargin,
boolean isValid)
Initializes a new instance of the
LayoutAlignment class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
The equals.
|
static LayoutAlignment |
getAlignment(int horizontalAlignment)
Gets layout alignment by horizontal alignment.
|
byte |
getHorizontalAlignment()
Gets the horizontal alignment of the content within the parent node.
|
byte |
getHorizontalMargin()
Gets whether the content is aligned to the left or right margin of the page
0 -> Left to right.
|
static LayoutAlignment |
getInParentDefault() |
static byte |
getParagraphAlignment(int horizontalAlignment)
Gets paragraph alignment by horizontal alignment.
|
static LayoutAlignment |
getSelfDefault() |
byte |
getVerticalAlignment()
Gets the vertical alignment of the content within the parent node.
|
byte |
getVerticalMargin()
Gets whether the content is aligned to the top or bottom of the page margin.
|
int |
hashCode()
The get hash code.
|
boolean |
isValid()
A bit that specifies whether the value of the LayoutAlignment type is valid.
|
static boolean |
op_Equality(LayoutAlignment left,
LayoutAlignment right)
The ==.
|
static boolean |
op_Inequality(LayoutAlignment left,
LayoutAlignment right)
The !=.
|
void |
setHorizontalAlignment(byte value)
Gets the horizontal alignment of the content within the parent node.
|
void |
setHorizontalMargin(byte value)
Gets whether the content is aligned to the left or right margin of the page
0 -> Left to right.
|
void |
setValid(boolean value)
A bit that specifies whether the value of the LayoutAlignment type is valid.
|
void |
setVerticalAlignment(byte value)
Gets the vertical alignment of the content within the parent node.
|
void |
setVerticalMargin(byte value)
Gets whether the content is aligned to the top or bottom of the page margin.
|
public LayoutAlignment()
Initializes a new instance of the LayoutAlignment
class.
public LayoutAlignment(byte horizontalAlignmen, byte horizontalMargin, byte verticalAlignment, byte verticalMargin, boolean isValid)
Initializes a new instance of the LayoutAlignment
class.
horizontalAlignmen
- The horizontal alignmen.horizontalMargin
- The horizontal margin.verticalAlignment
- The vertical alignment.verticalMargin
- The vertical margin.isValid
- The is valid.public static LayoutAlignment getAlignment(int horizontalAlignment)
Gets layout alignment by horizontal alignment.
horizontalAlignment
- public static byte getParagraphAlignment(int horizontalAlignment)
Gets paragraph alignment by horizontal alignment.
horizontalAlignment
- 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
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
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
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
public byte getVerticalAlignment()
Gets the vertical alignment of the content within the parent node. 0 -> Bottom 1 -> Top
public void setVerticalAlignment(byte value)
Gets the vertical alignment of the content within the parent node. 0 -> Bottom 1 -> Top
public byte getVerticalMargin()
Gets whether the content is aligned to the top or bottom of the page margin. 0 Bottom margin. 1 Top margin.
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.
public boolean isValid()
A bit that specifies whether the value of the LayoutAlignment type is valid.
public void setValid(boolean value)
A bit that specifies whether the value of the LayoutAlignment type is valid.
public static LayoutAlignment getInParentDefault()
public static LayoutAlignment getSelfDefault()
public boolean equals(Object obj)
The equals.
public int hashCode()
The get hash code.
public static boolean op_Equality(LayoutAlignment left, LayoutAlignment right)
The ==.
left
- The left.right
- The right.public static boolean op_Inequality(LayoutAlignment left, LayoutAlignment right)
The !=.
left
- The left.right
- The right.Copyright (c) 2017 Aspose. All Rights Reserved.