MonobjcMonobjc Documented Class Library
CreateWithColors Method (space, colors, locations)
NamespacesMonobjc.ApplicationServicesCGGradientCreateWithColors(IntPtr, NSArray, IntPtr)

Creates a CGGradient object from a color space and the provided color objects and locations.

Original signature is 'CGGradientRef CGGradientCreateWithColors( CGColorSpaceRef space, CFArrayRef colors, const CGFloat locations[] );'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateWithColors(
	IntPtr space,
	NSArray colors,
	IntPtr locations
)
Public Shared Function CreateWithColors ( _
	space As IntPtr, _
	colors As NSArray, _
	locations As IntPtr _
) As IntPtr
public:
static IntPtr CreateWithColors(
	IntPtr space, 
	NSArray^ colors, 
	IntPtr locations
)
Parameters
space (IntPtr)
MISSING
colors (NSArray)
MISSING
locations (IntPtr)
MISSING
Return Value
A CGGradient object.
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)