MonobjcMonobjc Documented Class Library
DrawInRect Method (rect)
NamespacesMonobjc.AppKitNSImageRepDrawInRect(NSRect)

Draws the image, scaling it (as needed) to fit the specified rectangle.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool DrawInRect(
	NSRect rect
)
Public Overridable Function DrawInRect ( _
	rect As NSRect _
) As Boolean
public:
virtual bool DrawInRect(
	NSRect rect
)
Parameters
rect (NSRect)
The rectangle in the current coordinate system in which to draw the image.
Return Value
YES if the image was successfully drawn; otherwise, NO. If the size of the image has not yet been set, this method returns NO immediately
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)