System.Windows.Forms.DataFormats Class

Provides static, predefined System.Windows.Forms.Clipboard format names. Use them to identify the format of data that you store in an System.Windows.Forms.IDataObject.

See Also: DataFormats Members

Syntax

public class DataFormats

Remarks

The System.Windows.Forms.IDataObject and System.Windows.Forms.DataObject classes also use the static format list to determine the type of data that is retrieved from the system System.Windows.Forms.Clipboard, or that is transferred in a drag-and-drop operation.

The DataFormats.GetFormat(string) method allows you to:

You can get the System.Windows.Forms.DataFormats.Format.Id number or format System.Windows.Forms.DataFormats.Format.Name from the appropriate property in the System.Windows.Forms.DataFormats.Format instance.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0