MonobjcMonobjc Documented Class Library
SetStringForType Method (string, type)
NamespacesMonobjc.AppKitNSPasteboardItemSetStringForType(NSString, NSString)

Sets the value for a specified type as a string.

Original signature is '- (BOOL)setString:(NSString *)string forType:(NSString *)type'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool SetStringForType(
	NSString string,
	NSString type
)
Public Overridable Function SetStringForType ( _
	string As NSString, _
	type As NSString _
) As Boolean
public:
virtual bool SetStringForType(
	NSString^ string, 
	NSString^ type
)
Parameters
string (NSString)
A string for the representation specified by type.
type (NSString)
A UTI type string.
Return Value
YES if the value was set successfully, otherwise NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)