2.1.1.30 StringTrimming Enumeration

The StringTrimming enumeration defines how to trim characters from a string that is too large for the text layout rectangle.

 typedef  enum 
 {
   StringTrimmingNone = 0x00000000,
   StringTrimmingCharacter = 0x00000001,
   StringTrimmingWord = 0x00000002,
   StringTrimmingEllipsisCharacter = 0x00000003,
   StringTrimmingEllipsisWord = 0x00000004,
   StringTrimmingEllipsisPath = 0x00000005
 } StringTrimming;

StringTrimmingNone:  No trimming is done.

StringTrimmingCharacter:  The string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.

StringTrimmingWord:  The string is broken at the boundary of the last word that is inside the layout rectangle.

StringTrimmingEllipsisCharacter:  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:  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:  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.

See section 2.1.1 for the specification of additional enumerations.