- format
- The format of the data to retrieve. See System.Windows.Forms.DataFormats for predefined formats.
The data associated with the specified format, or null.
If this method cannot find data in the specified format, it attempts to convert the data to the format. If the data cannot be converted to the specified format, or if the data was stored with automatic conversion set to false, this method returns null.
To determine whether data is associated with, or can be converted to, a format, call DataObject.GetDataPresent(Type) before calling DataObject.GetData(string, bool). Call DataObject.GetFormats(bool) for a list of valid formats for the data stored in this System.Windows.Forms.DataObject.
Data can be converted to another format if it was stored specifying that conversion is allowed, and if the requested format is compatible with the stored format. For example, data stored as Unicode can be converted to text.