The following constants are provided as rendering options for a string when it is drawn.
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public enum NSStringDrawingOptions
Public Enumeration NSStringDrawingOptions
public enum class NSStringDrawingOptions

Member | Description |
---|---|
NSStringDrawingUsesLineFragmentOrigin | The specified origin is the line fragment origin, not the baseline origin. Available in Mac OS X v10.4 and later. |
NSStringDrawingUsesFontLeading | Uses the font leading for calculating line heights. Available in Mac OS X v10.4 and later. |
NSStringDrawingDisableScreenFontSubstitution | Disable screen font substitution (equivalent to [NSLayoutManager setUsesScreenFonts:NO]). Available in Mac OS X v10.4 and later. |
NSStringDrawingUsesDeviceMetrics | Uses image glyph bounds instead of typographic bounds. Available in Mac OS X v10.4 and later. |
NSStringDrawingOneShot | Suppresses caching layout information. Available in Mac OS X v10.4 and later. |
NSStringDrawingTruncatesLastVisibleLine | Truncates and adds the ellipsis character to the last visible line if the text doesn't fit into the bounds specified. This option is ignored if NSStringDrawingUsesLineFragmentOrigin is not also set. In addition, the line break mode must be either NSLineBreakByWordWrapping or NSLineBreakByCharWrapping for this option to take effect. The line break mode can be specified in a paragraph style passed in the attributes dictionary argument of the drawing methods. Available in Mac OS X v10.5 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)