ContainsText Method
Collapse the table of content
Expand the table of content

DataObject.ContainsText Method ()

 

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

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

public virtual bool ContainsText()

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft