Returns an integer indicating whether an item on the Clipboard object matches a specified format. Doesn't support named argument.
Syntax
object.GetFormat (format)
The GetFormat method syntax has these parts:
Part | Description |
object | Required. An object expression that evaluates to an object in the Applies To list. |
format | Required. A value or constant that specifies the Clipboard object format, as described in Settings. Parentheses must enclose the constant or value. |
Settings
The settings for format are:
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 |
Remarks
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.