MonobjcMonobjc Documented Class Library
ColorFromPasteboard Method (pasteBoard)
NamespacesMonobjc.AppKitNSColorColorFromPasteboard(NSPasteboard)

Returns the NSColor currently on the given pasteboard.

Original signature is '+ (NSColor *)colorFromPasteboard:(NSPasteboard *)pasteBoard'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSColor ColorFromPasteboard(
	NSPasteboard pasteBoard
)
Public Shared Function ColorFromPasteboard ( _
	pasteBoard As NSPasteboard _
) As NSColor
public:
static NSColor^ ColorFromPasteboard(
	NSPasteboard^ pasteBoard
)
Parameters
pasteBoard (NSPasteboard)
The pasteboard from which to return the color.
Return Value
The color currently on the pasteboard or nil if pasteBoard doesn’t contain color data. The returned color’s alpha component is set to 1.0 if ignoresAlpha returns YES.
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)