MonobjcMonobjc Documented Class Library
DrawWithRectOptions Method (__target, rect, options)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsDrawWithRectOptions(NSAttributedString, NSRect, NSStringDrawingOptions)

Draws the receiver with the specified options, within the given rectangle in the current graphics context.

Original signature is '- (void)drawWithRect:(NSRect)rect options:(NSStringDrawingOptions)options'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void DrawWithRectOptions(
	this NSAttributedString __target,
	NSRect rect,
	NSStringDrawingOptions options
<ExtensionAttribute> _
Public Shared Sub DrawWithRectOptions ( _
	__target As NSAttributedString, _
	rect As NSRect, _
	options As NSStringDrawingOptions _
static void DrawWithRectOptions(
	NSAttributedString^ __target, 
	NSRect rect, 
	NSStringDrawingOptions options
__target (NSAttributedString)
The target instance.
rect (NSRect)
options (NSStringDrawingOptions)
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)