Skip to main content

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 : Enum

Fields

NameDescription
CharacterSpecifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.
EllipsisCharacterSpecifies 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.
EllipsisPathSpecifies 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.
EllipsisWordSpecifies 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.
NoneSpecifies no trimming.
WordSpecifies that the string is broken at the boundary of the last word that is inside the layout rectangle.

Used By

NameDescription
StringFormat.TrimmingGets or sets the StringTrimming enumeration for this StringFormat object.