These constants specify what happens when a line is too long for its container.
Available in Mac OS X v10.0 and later.
C# | Visual Basic | Visual C++ |
public enum NSLineBreakMode
Public Enumeration NSLineBreakMode
public enum class NSLineBreakMode
Member | Description |
---|---|
NSLineBreakByWordWrapping | Wrapping occurs at word boundaries, unless the word itself doesn’t fit on a single line. Available in Mac OS X v10.0 and later. |
NSLineBreakByCharWrapping | Wrapping occurs before the first character that doesn’t fit. Available in Mac OS X v10.0 and later. |
NSLineBreakByClipping | Lines are simply not drawn past the edge of the text container. Available in Mac OS X v10.0 and later. |
NSLineBreakByTruncatingHead | Each line is displayed so that the end fits in the container and the missing text is indicated by some kind of ellipsis glyph. Available in Mac OS X v10.0 and later. |
NSLineBreakByTruncatingTail | Each line is displayed so that the beginning fits in the container and the missing text is indicated by some kind of ellipsis glyph. Available in Mac OS X v10.0 and later. |
NSLineBreakByTruncatingMiddle | Each line is displayed so that the beginning and end fit in the container and the missing text is indicated by some kind of ellipsis glyph in the middle. Available in Mac OS X v10.0 and later. |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)