MonobjcMonobjc Documented Class Library
DrawSwatchInRect Method (rect)

Draws the current color in the given rectangle.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawSwatchInRect(
	NSRect rect
Public Overridable Sub DrawSwatchInRect ( _
	rect As NSRect _
virtual void DrawSwatchInRect(
	NSRect rect
rect (NSRect)
The rectangle in which to draw the color.
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)