Skip to content

GetFormat Method

Description

Returns a boolean value indicating whether an item in the DataObject object matches a specified format.

Syntax

Public Function GetFormat( _
    ByVal [Format](#) As Long _
) As Boolean

Parameters

Format

A constant or value that specifies the data format, as described in Settings. Parentheses must enclose the constant or value. If format is 0 or omitted, GetData automatically uses the appropriate format.

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)

Return Type

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

See Also

DataObject Object


See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.