Modifier

Partager via


UIPasteboard.SetValue(NSObject, String) Method

Definition

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

[Foundation.Export("setValue:forPasteboardType:")]
public virtual void SetValue (Foundation.NSObject value, string pasteboardType);
abstract member SetValue : Foundation.NSObject * string -> unit
override this.SetValue : Foundation.NSObject * string -> unit

Parameters

value
NSObject
pasteboardType
String

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

Attributes

Remarks

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