This document is archived and information here might be outdated. Recommended version. |
Indicates if the DataObject supports the specified format.
[Visual Basic .NET]
Public Function GetFormat ( _
ByVal format As Integer _
) As Boolean
[C#]
public bool GetFormat (
int format
);
[C++]
HRESULT GetFormat(
long format
);
[C++] Parameters format [in]
format is a parameter of type long
GetFormat returns the DataObject format code. The format code corresponds to a clipboard format that is unqiue to the system and is registered with the windows api function RegisterClipboardFormat. Other standard drag and drop formats are available. For example, 1 is used for text, 2 for a bitmap and 15 is used for a file list.
Use to test if the format of data in the DataObject matches the specified format. Typically used when dropping data onto the PageLayoutControl and MapControl from other applications.