**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

| Field | Description |
| --- | --- |
| [Near](#Near) | Specifies the text be aligned near the layout. |
| [Center](#Center) | Specifies that text is aligned in the center of the layout rectangle. |
| [Far](#Far) | Specifies that text is aligned far from the origin position of the layout rectangle. |
### Near {#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 {#Center}
```
public static final int Center
```


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

### Far {#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.

