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

See section 2.1.1 for the specification of additional enumerations.