MonobjcMonobjc Documented Class Library
DrawInRect Method (__target, rect)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsDrawInRect(NSAttributedString, NSRect)

Draws the receiver with its font and other display attributes within the given rectangle in the currently focused NSView, clipping the text layout to this rectangle.

Original signature is '- (void)drawInRect:(NSRect)rect'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void DrawInRect(
	this NSAttributedString __target,
	NSRect rect
)
<ExtensionAttribute> _
Public Shared Sub DrawInRect ( _
	__target As NSAttributedString, _
	rect As NSRect _
)
[ExtensionAttribute]
public:
static void DrawInRect(
	NSAttributedString^ __target, 
	NSRect rect
)
Parameters
__target (NSAttributedString)
The target instance.
rect (NSRect)
MISSING
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSAttributedString. 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)