MonobjcMonobjc Documented Class Library
DrawInRectRelativeCenterPosition Method (rect, relativeCenterPosition)
NamespacesMonobjc.AppKitNSGradientDrawInRectRelativeCenterPosition(NSRect, NSPoint)

Draws a radial gradient starting at the center of the specified rectangle.

Original signature is '- (void)drawInRect:(NSRect)rect relativeCenterPosition:(NSPoint)relativeCenterPosition'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawInRectRelativeCenterPosition(
	NSRect rect,
	NSPoint relativeCenterPosition
)
Public Overridable Sub DrawInRectRelativeCenterPosition ( _
	rect As NSRect, _
	relativeCenterPosition As NSPoint _
)
public:
virtual void DrawInRectRelativeCenterPosition(
	NSRect rect, 
	NSPoint relativeCenterPosition
)
Parameters
rect (NSRect)
The rectangle to fill.
relativeCenterPosition (NSPoint)
The relative location within the rectangle to use as the center point of the gradient’s end circle. Each coordinate must contain a value between -1.0 and 1.0. A coordinate value of 0 represents the center of rect along the given axis. In the default coordinate system, a value of -1.0 corresponds to the bottom or left edge of the rectangle and a value of 1.0 corresponds to the top or right edge.
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)