MonobjcMonobjc Documented Class Library
ColorUsingColorSpaceName Method (colorSpace)

Creates and returns an NSColor whose color is the same as the receiver’s, except that the new NSColor is in the specified color space.

Original signature is '- (NSColor *)colorUsingColorSpaceName:(NSString *)colorSpace'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorUsingColorSpaceName(
	NSString colorSpace
Public Overridable Function ColorUsingColorSpaceName ( _
	colorSpace As NSString _
) As NSColor
virtual NSColor^ ColorUsingColorSpaceName(
	NSString^ colorSpace
colorSpace (NSString)
The name of the color space containing the new NSColor object. If colorSpace is nil, the most appropriate color space is used.
Return Value
The new NSColor object or nil if the specified conversion cannot be done.
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)