MonobjcMonobjc Documented Class Library
SetColorForKey Method (color, key)
NamespacesMonobjc.AppKitNSColorListSetColorForKey(NSColor, NSString)

Associates the specified NSColor object with the specified key.

Original signature is '- (void)setColor:(NSColor *)color forKey:(NSString *)key'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetColorForKey(
	NSColor color,
	NSString key
Public Overridable Sub SetColorForKey ( _
	color As NSColor, _
	key As NSString _
virtual void SetColorForKey(
	NSColor^ color, 
	NSString^ key
color (NSColor)
The color to associate with the given key.
key (NSString)
The key.
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)