Retrieves text data from the data object in the format indicated by the specified System.Windows.Forms.TextDataFormat value.
- format
- One of the System.Windows.Forms.TextDataFormat values.
The text data in the data object or string.Empty if the data object does not contain data in the specified format.
Use the erload:System.Windows.Forms.DataObject.ContainsText method to determine whether the data object contains text data before retrieving it with this method.
Use the erload:System.Windows.Forms.DataObject.SetText method to add text data to the data object.