Draws the receiver with the font and other display characteristics of the given attributes, within the specified rectangle in the currently focused NSView.
Original signature is '- (void)drawInRect:(NSRect)aRect withAttributes:(NSDictionary *)attributes'
Available in Mac OS X v10.0 and later.
|C#||Visual Basic||Visual C++|
public static void DrawInRectWithAttributes( this NSString __target, NSRect aRect, NSDictionary attributes )
<ExtensionAttribute> _ Public Shared Sub DrawInRectWithAttributes ( _ __target As NSString, _ aRect As NSRect, _ attributes As NSDictionary _ )
- __target (NSString)
- The target instance.
- aRect (NSRect)
- The rectangle in which to draw the string.
- attributes (NSDictionary)
- A dictionary of text attributes to be applied to the string. These are the same attributes that can be applied to an NSAttributedString object, but in the case of NSString objects, the attributes apply to the entire string, rather than ranges within the string.
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)