StringTrimming
System.Drawing.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.
public enum StringTrimming : EnumPublic Enum StringTrimming As [Enum]Fields
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
Gets or sets the StringTrimming enumeration for this StringFormat object.
Last updated
Was this helpful?