StringAlignment

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class StringAlignment extends System.Enum

Specifies the alignment of a text string relative to its layout rectangle.

Fields

FieldDescription
NearSpecifies the text be aligned near the layout.
CenterSpecifies that text is aligned in the center of the layout rectangle.
FarSpecifies that text is aligned far from the origin position of the layout rectangle.

Near

public static final int Near

Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.

Center

public static final int Center

Specifies that text is aligned in the center of the layout rectangle.

Far

public static final int Far

Specifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.