Visual Basic Reference

Visual Studio 6.0

GetFormat Method (DataObject Object)

See Also    Example    Applies To

Returns an boolean value indicating whether an item in the DataObject object matches a specified format. Doesn't support named arguments.

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 A constant or value that specifies the data format, as described in Settings.

Settings

The settings for format are:

Constant Value Description
VbCFText 1 Text (.txt files)
VbCFBitmap 2 Bitmap (.bmp files)
VbCFMetafile 3 metafile (.wmf files)
VbCFEMetafile 14 Enhanced metafile (.emf files)
VbCFDIB 8 Device-independent bitmap (DIB)
VbCFPalette 9 Color palette
VbCFFiles 15 List of files
VbCFRTF -16639 Rich text format (.rtf files)

Remarks

These constants are listed in the Visual Basic (VB) object library in the Object Browser.

The GetFormat method returns True if an item in the DataObject object matches the specified format. Otherwise, it returns False.

Show: