MonobjcMonobjc Documented Class Library
DrawAtPointWithAttributes Method (__target, aPoint, attributes)
NamespacesMonobjc.AppKitNSString_AppKitAdditionsDrawAtPointWithAttributes(NSString, NSPoint, NSDictionary)

Draws the receiver with the font and other display characteristics of the given attributes, at the specified point in the currently focused view.

Original signature is '- (void)drawAtPoint:(NSPoint)aPoint withAttributes:(NSDictionary *)attributes'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void DrawAtPointWithAttributes(
	this NSString __target,
	NSPoint aPoint,
	NSDictionary attributes
)
<ExtensionAttribute> _
Public Shared Sub DrawAtPointWithAttributes ( _
	__target As NSString, _
	aPoint As NSPoint, _
	attributes As NSDictionary _
)
[ExtensionAttribute]
public:
static void DrawAtPointWithAttributes(
	NSString^ __target, 
	NSPoint aPoint, 
	NSDictionary^ attributes
)
Parameters
__target (NSString)
The target instance.
aPoint (NSPoint)
The origin for the bounding box for drawing the string. If the focused view is flipped, the origin is the upper-left corner of the drawing bounding box; otherwise, the origin is the lower-left corner.
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)