StringAlignment
Namespace: System.Drawing
Assembly: System.Drawing.Managed (4.0.0.0)
Specifies the alignment of a text string relative to its layout rectangle.
- C#
- VB.NET
public enum StringAlignment : Enum
Public Enum StringAlignment As [Enum]
Fields
| Name | 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. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left. |
| 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. |
Used By
| Name | Description |
|---|---|
| StringFormat.Alignment | Gets or sets horizontal alignment of the string. |
| StringFormat.LineAlignment | Gets or sets the vertical alignment of the string. |