MonobjcMonobjc Documented Class Library
DrawInRectWithAttributes Method (__target, aRect, attributes)
NamespacesMonobjc.AppKitNSString_AppKitAdditionsDrawInRectWithAttributes(NSString, NSRect, NSDictionary)

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.

Declaration Syntax
C#Visual BasicVisual 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 _
static void DrawInRectWithAttributes(
	NSString^ __target, 
	NSRect aRect, 
	NSDictionary^ attributes
__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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSString. When you use instance method syntax to call this method, omit the first parameter.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)