DataObject.ContainsText Method

Definition

Indicates whether the data object contains text data.

Overloads

ContainsText()

Indicates whether the data object contains data in the UnicodeText format.

ContainsText(TextDataFormat)

Indicates whether the data object contains text data in the format indicated by the specified TextDataFormat value.

ContainsText()

Indicates whether the data object contains data in the UnicodeText format.

public:
 virtual bool ContainsText();
public virtual bool ContainsText ();
abstract member ContainsText : unit -> bool
override this.ContainsText : unit -> bool
Public Overridable Function ContainsText () As Boolean

Returns

true if the data object contains text data; otherwise, false.

Remarks

Use this method to determine whether the data object contains text data before retrieving it with the GetText method.

See also

Applies to

ContainsText(TextDataFormat)

Indicates whether the data object contains text data in the format indicated by the specified TextDataFormat value.

public:
 virtual bool ContainsText(System::Windows::Forms::TextDataFormat format);
public virtual bool ContainsText (System.Windows.Forms.TextDataFormat format);
abstract member ContainsText : System.Windows.Forms.TextDataFormat -> bool
override this.ContainsText : System.Windows.Forms.TextDataFormat -> bool
Public Overridable Function ContainsText (format As TextDataFormat) As Boolean

Parameters

format
TextDataFormat

One of the TextDataFormat values.

Returns

true if the data object contains text data in the specified format; otherwise, false.

Exceptions

format is not a valid TextDataFormat value.

Remarks

Use this method to determine whether the data object contains text data before retrieving it with the GetText method.

See also

Applies to