The StringTrimming enumeration specifies how to trim characters from a string so that the string fits into a layout rectangle. The layout rectangle is used to position and size the display string.
Syntax
typedef enum {
StringTrimmingNone = 0,
StringTrimmingCharacter = 1,
StringTrimmingWord = 2,
StringTrimmingEllipsisCharacter = 3,
StringTrimmingEllipsisWord = 4,
StringTrimmingEllipsisPath = 5
} StringTrimming;
Constants
- StringTrimmingNone
Specifies that no trimming is done.
- StringTrimmingCharacter
Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.
- StringTrimmingWord
Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle.
- StringTrimmingEllipsisCharacter
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.
- StringTrimmingEllipsisWord
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.
- StringTrimmingEllipsisPath
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.
Remarks
Trimming affects only the last visible or partly visible (due to clipping) line of text.
Enumerated Type Information
| Header | Declared in Gdiplusenums.h, include gdiplus.h |
|---|
| Import library | gdiplus.lib |
|---|
| Minimum availability | GDI+
1.0 |
|---|
| Minimum operating systems |
Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6 |
|---|
See Also