MonobjcMonobjc Documented Class Library
ColorWithKey Method (key)
NamespacesMonobjc.AppKitNSColorListColorWithKey(NSString)

Returns the NSColor object associated with the given key.

Original signature is '- (NSColor *)colorWithKey:(NSString *)key'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorWithKey(
	NSString key
)
Public Overridable Function ColorWithKey ( _
	key As NSString _
) As NSColor
public:
virtual NSColor^ ColorWithKey(
	NSString^ key
)
Parameters
key (NSString)
The key for which to retrieve the color.
Return Value
The color associated with the given key or nil if there is none.
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)