StringTrimming | serializable |
System.Drawing (system.drawing.dll) | enum |
This enumeration contains the options for the
StringFormat.Trimming property, which determines
what happens to a string that is too large for its bounding box. You
can choose not to crop at all (None) or to crop at
Character or Word boundaries.
On top of that, you can choose to add an ellipsis ( . . . ) where the
cropping occurs, which may of course trim even more text to fit it in
(there are EllipsisCharacter and
EllipsisWord elements to choose this option).
There is also the special case of EllipsisPath
which treats the string as a file path and crops in the middle of the
string, between \ characters, adding an appropriate ellipsis.
public enum StringTrimming {
None = 0,
Character = 1,
Word = 2,
EllipsisCharacter = 3,
EllipsisWord = 4,
EllipsisPath = 5
}
Hierarchy
System.Object System.ValueType
System.Enum(System.IComparabl,
System.IFormattable,
System.IConvertible)
StringTrimming
Returned By
StringFormat.Trimming
Passed To
StringFormat.Trimming
|