UIPasteboard.SetValue(NSObject, String) UIPasteboard.SetValue(NSObject, String) Method


Sets the value for the specified representation type in this UIPasteBoard.

public virtual void SetValue (Foundation.NSObject value, string pasteboardType);
abstract member SetValue : Foundation.NSObject * string -> unit
override this.SetValue : Foundation.NSObject * string -> unit


String String

The pasteboard type, one of the constants in UTType constants.


This method can be used to set the pasteboard contents to an NSString, NSArray, NSDictionary, NSDate, NSNumber, UIImage or NSUrl.

To set an image use the P:UIKit.UIPasteBoard.Image property. To set the pasteboard contents to a set of images, use the Images property.

Applies to