Partilhar via


ClipboardObject.SetData Method

Definition

Overloads

SetData(String, Boolean, Object)

Adds data to the clipboard object.

SetData(Type, Object)

Adds data to the clipboard object, using the specified type as the format.

SetData(String, Object)

Adds data to the clipboard object in the specified format.

SetData(Object)

Adds data to the clipboard object.

SetData(String, Boolean, Object)

Adds data to the clipboard object.

public:
 override void SetData(System::String ^ format, bool autoConvert, System::Object ^ data);
public override void SetData (string format, bool autoConvert, object data);
override this.SetData : string * bool * obj -> unit
Public Overrides Sub SetData (format As String, autoConvert As Boolean, data As Object)

Parameters

format
String

The format of the data to set. See DataFormats for predefined formats.

autoConvert
Boolean

true to allow the data to be converted to another format; otherwise, false.

data
Object

The data to store.

Applies to

SetData(Type, Object)

Adds data to the clipboard object, using the specified type as the format.

public:
 override void SetData(Type ^ format, System::Object ^ data);
public override void SetData (Type format, object data);
override this.SetData : Type * obj -> unit
Public Overrides Sub SetData (format As Type, data As Object)

Parameters

format
Type

The format of the data to set. See DataFormats for predefined formats.

data
Object

The data to store.

Applies to

SetData(String, Object)

Adds data to the clipboard object in the specified format.

public:
 override void SetData(System::String ^ format, System::Object ^ data);
public override void SetData (string format, object data);
override this.SetData : string * obj -> unit
Public Overrides Sub SetData (format As String, data As Object)

Parameters

format
String

The format of the data to set. See DataFormats for predefined formats.

data
Object

The data to store.

Applies to

SetData(Object)

Adds data to the clipboard object.

public:
 override void SetData(System::Object ^ data);
public override void SetData (object data);
override this.SetData : obj -> unit
Public Overrides Sub SetData (data As Object)

Parameters

data
Object

The data to store.

Applies to