GpStringAlignment enumeration
Specifies how a string is aligned relative to its layout rectangle.
The enumeration is used for the horizontal alignment (Alignment) and for the vertical, or line, alignment (LineAlignment) of a StringFormat. For horizontal text, near is the left edge for text that reads from left to right and the right edge for text that reads from right to left. For vertical text it is the top.
| Member | Value | Description |
|---|---|---|
| StringAlignmentNear | 0 | The text is aligned near the origin of the layout rectangle. |
| StringAlignmentCenter | 1 | The text is centred in the layout rectangle. |
| StringAlignmentFar | 2 | The text is aligned far from the origin of the layout rectangle. |
Used by
- StringFormat class: Alignment, LineAlignment
See Also
- StringAlignment – Microsoft’s documentation of the GDI+ enumeration
- Enumerations – all the enumerations of the package
- StringFormat class