public enum StringAlignment extends Enum<StringAlignment>
Specifies the alignment of a text string relative to its layout rectangle.
| Enum Constant and Description |
|---|
Center
Specifies that text is aligned in the center of the layout rectangle.
|
Far
Specifies that text is aligned far from the origin position of the layout rectangle.
|
Near
Specifies the text be aligned near the layout.
|
| Modifier and Type | Method and Description |
|---|---|
static StringAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringAlignment 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.
public static final StringAlignment Center
Specifies that text is aligned in the center of the layout rectangle.
public static final StringAlignment 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.
public static StringAlignment[] values()
for (StringAlignment c : StringAlignment.values()) System.out.println(c);
public static StringAlignment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.