DataFormats.Format Class
Represents a Clipboard format type.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
A format type consists of a text-based format name and an ID number. The format name/ID number pair can define a system Clipboard or other format.
The following code example shows how to retrieve a DataFormats.Format representing a format name/ID pair. The UnicodeText format is requested, and the contents of the retrieved DataFormats.Format are displayed in a text box.
This code requires that textBox1 has been created.
Private Sub GetMyFormatInfomation() ' Creates a DataFormats.Format for the Unicode data format. Dim myFormat As DataFormats.Format = _ DataFormats.GetFormat(DataFormats.UnicodeText) ' Displays the contents of myFormat. textBox1.Text = "ID value: " + myFormat.Id.ToString() + ControlChars.Cr _ + "Format name: " + myFormat.Name End Sub
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.