Returns an integer indicating whether an item on the Clipboard object matches a specified format. Named arguments are not supported.
object.GetFormat (format)
The parts of the GetFormat method syntax are described in the following table.
Part | Description |
---|---|
object | Required. An object expression that evaluates to an object. |
format | Required. A value or constant that specifies the Clipboard object format, as described in Settings. Parentheses must enclose the constant or value. |
The settings for format are described in the following table.
Constant | Value | Description |
---|---|---|
vbCFLink | &HBF00 | DDE conversation information |
vbCFText | 1 | Text |
vbCFBitmap | 2 | Bitmap (.bmp files) |
vbCFMetafile | 3 | Metafile (.wmf files) |
vbCFDIB | 8 | Device-independent bitmap (DIB) |
vbCFPalette | 9 | Color palette |
These constants are listed in the Visual Basic (VB) object library in the Object Browser.
The GetFormat method returns True if an item on the Clipboard object matches the specified format. Otherwise, it returns False.
For vbCFDIB and vbCFBitmap formats, whatever color palette is on the Clipboard is used when the graphic is displayed.