StringTrimming
Namespace: System.Drawing
Assembly: System.Drawing.Managed (4.0.0.0)
Specifies how to trim characters from a string that does not completely fit into a layout shape.
- C#
- VB.NET
public enum StringTrimming : Enum
Public Enum StringTrimming As [Enum]
Fields
| Name | Description |
|---|---|
| Character | Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default. |
| EllipsisCharacter | Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle and an ellipsis (...) is inserted after the character. |
| EllipsisPath | Specifies that the center is removed from the string and replaced by an ellipsis. The algorithm keeps as much of the last portion of the string as possible. |
| EllipsisWord | Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle and an ellipsis (...) is inserted after the word. |
| None | Specifies no trimming. |
| Word | Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle. |
Used By
| Name | Description |
|---|---|
| StringFormat.Trimming | Gets or sets the StringTrimming enumeration for this StringFormat object. |