IDataObject.GetFormats Method

   
IDataObject.GetFormats Method

Class

System.Windows.Forms.IDataObject

Syntax

 GetDataFormats([   autoconvert   ]) 
autoconvert (optional; Boolean)

True to retrieve all formats that the Clipboard data is associated with or can be converted to; False to retrieve only native data formats

Return Value

A String array containing a list of all supported formats

Description

Retrieves a list of all the formats that the Clipboard data is associated with or can be converted to

Rules at a Glance

The elements in the array returned by the method can take any of the following values:

DataFormats.Bitmap
DataFormats.CommaSeparatedValue
DataFormats.Dib
DataFormats.Dif
DataFormats.EnhancedMetafile
DataFormats.FileDrop
DataFormats.Html
DataFormats.Locale
DataFormats.MetafilePict
DataFormats.OemText
DataFormats.Palette
DataFormats.PenData
DataFormats.Riff
DataFormats.Rtf
DataFormats.Serializable (a format that encapsulates any type of Windows Forms object)
DataFormats.StringFormat
DataFormats.SymbolicLink
DataFormats.Text
DataFormats.Tiff
DataFormats.UnicodeText
DataFormats.WaveAudio

See Also

IDataObject.GetData Method, IDataObject.GetDataPresent Method

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net