Game Development Reference
In-Depth Information
IDataObject dataObject = Clipboard.GetDataObject();
string text = null;
if (dataObject.GetDataPresent(DataFormats.Text))
{
text = (string)dataObject.GetData(DataFormats.Text);
}
There are many built-in types available, as shown in Table 31.1.
Table 31.1 Available Data Formats
Data Format
Description
Bitmap
Specifies a Windows bitmap format.
CommaSeparatedValue
Specifies a comma-separated value (CSV) format that is a common
interchange format for spreadsheet applications.
Dib
Specifies the Windows device-independent bitmap format.
Dif
Specifies the Windows data interchange format.
EnhancedMetafile
Specifies the Windows enhanced metafile format.
FileDrop
Specifies the Windows file drop format.
Html
Specifies text consisting of HTML data.
Locale
Specifies the Windows culture format.
MetafilePict
Specifies the Windows metafile format.
OemText
Specifies the standard Windows original equipment manufacturer
(OEM) text format.
Palette
Specifies the Windows palette format.
PenData
Specifies the Windows pen data format, used to store pen strokes for
handwriting software.
Riff
Specifies the Resource Interchange File Format (RIFF) audio format.
Rtf
Specifies text consisting of rich text format data.
Serializable
Specifies a format that encapsulates any type of Windows Forms object.
StringFormat
Specifies the Windows Forms string class format, used by Windows
Forms to store string objects.
SymbolicLink
Specifies the Windows symbolic link format.
Text
Specifies the standard ANSI text format.
Tiff
Specifies the Tagged Image File format.
UnicodeText
Specifies the standard Windows Unicode text format.
WaveAudio
Specifies the wave audio format.
Search Nedrilad ::




Custom Search