System.Windows.Forms.DataObject.ContainsText Method

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

Syntax

public virtual bool ContainsText ()

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 erload:System.Windows.Forms.DataObject.GetText method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0