次の方法で共有


ClipboardObject.GetDataPresent Method

Definition

Overloads

GetDataPresent(String)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.

GetDataPresent(Type)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.

GetDataPresent(String, Boolean)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format, using an automatic conversion parameter to determine whether to convert the data to the format.

GetDataPresent(String)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.

public:
 override bool GetDataPresent(System::String ^ format);
public override bool GetDataPresent (string format);
override this.GetDataPresent : string -> bool
Public Overrides Function GetDataPresent (format As String) As Boolean

Parameters

format
String

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

Returns

true if the data can be converted to or is associated with the specified format; otherwise, false.

Applies to

GetDataPresent(Type)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.

public:
 override bool GetDataPresent(Type ^ format);
public override bool GetDataPresent (Type format);
override this.GetDataPresent : Type -> bool
Public Overrides Function GetDataPresent (format As Type) As Boolean

Parameters

format
Type

The class type associated with the data.

Returns

true if the data can be converted to or is associated with the specified format; otherwise, false.

Applies to

GetDataPresent(String, Boolean)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format, using an automatic conversion parameter to determine whether to convert the data to the format.

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

Parameters

format
String

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

autoConvert
Boolean

Specifies whether to check whether the data can be converted to the specified format (true), or check whether the data is in the specified format (false).

Returns

true if the data can be converted to or is associated with the specified format; otherwise, false.

Applies to