Translates between Winforms text-based Clipboard formats and Microsoft.Win32 32-bit signed integer-based Clipboard formats. Provides static (in Visual Basic Shared) methods to create new Clipboard formats and add them to the Windows Registry.
Object
DataFormats
[Visual Basic] Public Class DataFormats [C#] public class DataFormats [C++] public __gc class DataFormats [JScript] public class DataFormats
DataFormats provides static (Shared), predefined Clipboard format names. Use them to identify the format of data that you store in an IDataObject. The IDataObject and System.WinForms.App.DataObject classes also use the static (Shared) format list to determine the type of data that is retrieved from the system Clipboard, or that is transferred in a drag-and-drop operation.
The GetFormat method allows you to:
You can get the id number or format name from the appropriate field in the DataFormats.Format instance.
Namespace: System.WinForms
Assembly: System.WinForms.dll
Put a clipboard or drag-and-drop thingie here. And also an example where you make up your own clipboard format, register it, put something on the clipboard in the format, retrieve the DataObject and get the data out in your format.
DataFormats Members | System.WinForms Namespace | Clipboard | DataObject | DataFormats.Format | IDataObject | SetData | GetData | GetFormats | GetDataPresent | GetData | GetDataPresent | GetFormats | SetData