System.Windows.Forms.DataObject.SetText Method

Adds text data to the data object in the TextDataFormat.UnicodeText format.

Syntax

public virtual void SetText (string textData)

Parameters

textData
The text to add to the data object.

Remarks

To retrieve text data from the data object, first use the erload:System.Windows.Forms.DataObject.ContainsText method to determine whether the data object contains image 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