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.
Namespace: RSGdiPlusGraphicsTypes
Delphi
|
type
TRSGPStringTrimming = (
stNone,
stCharacter,
stWord,
stEllipsisCharacter,
stEllipsisWord,
stEllipsisPath
);
|
|
Name
|
Description
|
|
stCharacter
|
Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.
|
|
stEllipsisCharacter
|
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.
|
|
stEllipsisPath
|
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.
|
|
stEllipsisWord
|
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.
|
|
stNone
|
Specifies that no trimming is done.
|
|
stWord
|
Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle.
|
Top
|
Trimming affects only the last visible or partly visible (due to clipping) line of text.
|