MonobjcMonobjc Documented Class Library
GetColorLocationAtIndex Method (color, location, index)
NamespacesMonobjc.AppKitNSGradientGetColorLocationAtIndex(NSColor%, CGFloat%, NSInteger)

Returns information about the color stop at the specified index in the receiver’s color array.

Original signature is '- (void)getColor:(NSColor **)color location:(CGFloat *)location atIndex:(NSInteger)index'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void GetColorLocationAtIndex(
	out NSColor color,
	out CGFloat location,
	NSInteger index
)
Public Overridable Sub GetColorLocationAtIndex ( _
	<OutAttribute> ByRef color As NSColor, _
	<OutAttribute> ByRef location As CGFloat, _
	index As NSInteger _
)
public:
virtual void GetColorLocationAtIndex(
	[OutAttribute] NSColor^% color, 
	[OutAttribute] CGFloat% location, 
	NSInteger index
)
Parameters
color (NSColor%)
On input, a pointer to a color object. On output, the color at the specified index in the receiver’s color array. You may specify nil if you are not interested in this parameter.
location (CGFloat%)
On input, a pointer to a floating point number. On output, contains the location value associated with the color. This value is between 0.0 and 1.0. It is used to determine the position of the color relative to the start and end points of the gradient. You may specify NULL if you are not interested in this parameter.
index (NSInteger)
The index of the color you want.
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)