MonobjcMonobjc Documented Class Library
DrawFromPointToPointOptions Method (startingPoint, endingPoint, options)
NamespacesMonobjc.AppKitNSGradientDrawFromPointToPointOptions(NSPoint, NSPoint, NSGradientDrawingOptions)

Draws a linear gradient between the specified start and end points.

Original signature is '- (void)drawFromPoint:(NSPoint)startingPoint toPoint:(NSPoint)endingPoint options:(NSGradientDrawingOptions)options'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DrawFromPointToPointOptions(
	NSPoint startingPoint,
	NSPoint endingPoint,
	NSGradientDrawingOptions options
)
Public Overridable Sub DrawFromPointToPointOptions ( _
	startingPoint As NSPoint, _
	endingPoint As NSPoint, _
	options As NSGradientDrawingOptions _
)
public:
virtual void DrawFromPointToPointOptions(
	NSPoint startingPoint, 
	NSPoint endingPoint, 
	NSGradientDrawingOptions options
)
Parameters
startingPoint (NSPoint)
The starting point for the gradient, in the local coordinate system. The gradient’s first color is drawn at this point.
endingPoint (NSPoint)
The end point for the gradient, in the local coordinate system. The gradient’s last color is drawn at this point.
options (NSGradientDrawingOptions)
The gradient options, if any. You can use these options to extend the gradient size beyond the start and end points. For more information, see “Gradient Drawing Options”.
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)