MonobjcMonobjc Documented Class Library
DrawInRectAngle Method (rect, angle)
NamespacesMonobjc.AppKitNSGradientDrawInRectAngle(NSRect, CGFloat)

Fills the specified rectangle with a linear gradient.

Original signature is '- (void)drawInRect:(NSRect)rect angle:(CGFloat)angle'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawInRectAngle(
	NSRect rect,
	CGFloat angle
)
Public Overridable Sub DrawInRectAngle ( _
	rect As NSRect, _
	angle As CGFloat _
)
public:
virtual void DrawInRectAngle(
	NSRect rect, 
	CGFloat angle
)
Parameters
rect (NSRect)
The rectangle to fill.
angle (CGFloat)
The angle of the linear gradient, specified in degrees. Positive values indicate rotation in the counter-clockwise direction relative to the horizontal axis.
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)