Calculates and returns the bounding rect for the receiver drawn using the given options and display characteristics, within the specified rectangle in the current graphics context.
- macOS 10.4–10.11Deprecated
The size of the rectangle to draw in.
String drawing options.
A dictionary of text attributes to be applied to the string. These are the same attributes that can be applied to an
NSAttributedobject, but in the case of
NSStringobjects, the attributes apply to the entire string, rather than ranges within the string.
The bounding rect for the receiver drawn using the given options and display characteristics. The rect origin returned from this method is the first glyph origin.
This method works in single-line, baseline rendering configuration by default. If the string drawing option
NSString is specified, the method behaves in multiline configuration.