[]
Encapsulates text layout information (such as alignment and line spacing), display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features.
public sealed class StringFormat : ICloneable
Many common formats are provided through the StringFormatFlags enumeration. StringFormat objects can be changed.
| Name | Description |
|---|---|
| StringFormat() | Initializes a new StringFormat object. |
| StringFormat(StringAlignment, StringAlignment, StringFormatFlags) | Initializes a new StringFormat object with the specified StringAlignment and StringFormatFlags enumeration. |
| StringFormat(StringFormat) | Initializes a new StringFormat object from the specified existing StringFormat object. |
| StringFormat(StringFormatFlags) | Initializes a new StringFormat object with the specified StringFormatFlags enumeration. |
| Name | Description |
|---|---|
| Alignment | Gets or sets text alignment information. |
| FormatFlags | Gets or sets a StringFormatFlags enumeration that contains formatting information. |
| HotkeyPrefix | Gets or sets the HotkeyPrefix object for this StringFormat object. |
| LineAlignment | Gets or sets the line alignment. |
| Trimming | Gets or sets the StringTrimming enumeration for this StringFormat object. |
| Name | Description |
|---|---|
| Clone() | Creates a copy of the StringFormat object. |
| GetTabStops(out int, out TabUnit) | Gets the tab stops for this StringFormat object. |
| SetTabStops(int, int[], TabUnit) | Sets tab stops for this StringFormat object. |