MonobjcMonobjc Documented Class Library
InitWithColor Method (__target, color)
NamespacesMonobjc.AppKitCIColor_AppKitAdditionsInitWithColor(CIColor, NSColor)

Initializes a newly allocated CIColor object using an NSColor object.

Original signature is '- (id)initWithColor:(NSColor *)color'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id InitWithColor(
	this CIColor __target,
	NSColor color
)
<ExtensionAttribute> _
Public Shared Function InitWithColor ( _
	__target As CIColor, _
	color As NSColor _
) As Id
[ExtensionAttribute]
public:
static Id^ InitWithColor(
	CIColor^ __target, 
	NSColor^ color
)
Parameters
__target (CIColor)
The target instance.
color (NSColor)
The initial color value, which can belong to any available colorspace.
Return Value
The resulting CIColor object, or nil if the object cannot be initialized with the specified value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CIColor. When you use instance method syntax to call this method, omit the first parameter.
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)