Partilhar via


ClipboardObject.GetData Method

Definition

Overloads

GetData(String)

Retrieves the data stored in the clipboard object in the specified format.

GetData(Type)

Retrieves the data stored in the clipboard object in the specified format.

GetData(String, Boolean)

Retrieves the data stored in the clipboard object in the specified format, using an automated conversion parameter to determine whether to convert the data to the format.

GetData(String)

Retrieves the data stored in the clipboard object in the specified format.

public:
 override System::Object ^ GetData(System::String ^ format);
public override object GetData (string format);
override this.GetData : string -> obj
Public Overrides Function GetData (format As String) As Object

Parameters

format
String

The class type associated with the data. See DataFormats for the predefined formats.

Returns

The data stored in the clipboard object in the specified format.

Applies to

GetData(Type)

Retrieves the data stored in the clipboard object in the specified format.

public:
 override System::Object ^ GetData(Type ^ format);
public override object GetData (Type format);
override this.GetData : Type -> obj
Public Overrides Function GetData (format As Type) As Object

Parameters

format
Type

The class type associated with the data.

Returns

The data stored in the clipboard object in the specified format.

Applies to

GetData(String, Boolean)

Retrieves the data stored in the clipboard object in the specified format, using an automated conversion parameter to determine whether to convert the data to the format.

public:
 override System::Object ^ GetData(System::String ^ format, bool autoConvert);
public override object GetData (string format, bool autoConvert);
override this.GetData : string * bool -> obj
Public Overrides Function GetData (format As String, autoConvert As Boolean) As Object

Parameters

format
String

The class type associated with the data. See DataFormats for the predefined formats.

autoConvert
Boolean

Specifies whether to convert the data to the specified format (true) or not (false).

Returns

The data stored in the clipboard object in the specified format.

Applies to