API

Enumeration TextWrappingConst

Enum that determines the text-wrapping mode to use.

Index
Clip: 0

Clip the text when it's larger than Control.width; this is the default mode.

Ellipsis: 2

Ellipsize the text, i.e. shrink with trailing … when text is larger than Control.width.

HTML: 4

Use HTML to wrap the text. This is the only mode that supports east-asian languages.

WordWrap: 1

Wrap the text word-wise, i.e. try to add line-breaks at word boundary to fit within Control.width.

WordWrapEllipsis: 3

Wrap the text word-wise and clip the text when the text's height is larger than the Control.height, and shrink the last line with trailing … .