MonobjcMonobjc Documented Class Library
ColorWithCatalogNameColorName Method (listName, colorName)
NamespacesMonobjc.AppKitNSColorColorWithCatalogNameColorName(NSString, NSString)

Creates and returns an NSColor object by finding the color with the specified name in the given catalog.

Original signature is '+ (NSColor *)colorWithCatalogName:(NSString *)listName colorName:(NSString *)colorName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSColor ColorWithCatalogNameColorName(
	NSString listName,
	NSString colorName
Public Shared Function ColorWithCatalogNameColorName ( _
	listName As NSString, _
	colorName As NSString _
) As NSColor
static NSColor^ ColorWithCatalogNameColorName(
	NSString^ listName, 
	NSString^ colorName
listName (NSString)
The name of the catalog in which to find the specified color; this may be a standard catalog.
colorName (NSString)
The name of the color. Note that the color must be defined in the named color space to retrieve it with this method.
Return Value
The color 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)