MonobjcMonobjc Documented Class Library
DrawWithRectOptionsAttributes Method (__target, rect, options, attributes)
NamespacesMonobjc.AppKitNSString_AppKitAdditionsDrawWithRectOptionsAttributes(NSString, NSRect, NSStringDrawingOptions, NSDictionary)

Draws the receiver with the specified options and other display characteristics of the given attributes, within the specified rectangle in the current graphics context.

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

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void DrawWithRectOptionsAttributes(
	this NSString __target,
	NSRect rect,
	NSStringDrawingOptions options,
	NSDictionary attributes
<ExtensionAttribute> _
Public Shared Sub DrawWithRectOptionsAttributes ( _
	__target As NSString, _
	rect As NSRect, _
	options As NSStringDrawingOptions, _
	attributes As NSDictionary _
static void DrawWithRectOptionsAttributes(
	NSString^ __target, 
	NSRect rect, 
	NSStringDrawingOptions options, 
	NSDictionary^ attributes
__target (NSString)
The target instance.
rect (NSRect)
The rectangle in which to draw the string.
options (NSStringDrawingOptions)
String drawing options.
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)