System.Windows.Forms.DataObject.ContainsText Method

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

Syntax

public virtual bool ContainsText (TextDataFormat format)

Parameters

format
One of the System.Windows.Forms.TextDataFormat values.

Returns

true if the data object contains text data in the specified format; 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