Spread 8.0 Documentation
GetFormat Method (fpDataObject)
Support Options
ActiveX Reference > ActiveX Methods > GetFormat Method (fpDataObject)

Glossary Item Box

GetFormat Method (fpDataObject)


See Also

Applies To

fpDataObject object

Description

Determines if a specified clipboard format is available in the fpDataObject.

Syntax

Visual Basic

fpSpread1.fpDataObject.GetFormat(ByVal Format As Integer) As Boolean

Parameter

The following parameter is available:

Parameter Description
Format Specifies the data format
Using the Or operator, combine any of the following values:
Value Description
1 - fpCFText Text (string data)
2 - fpCFBitmap Bitmap (picture object)
3 - fpCFMetafile Metafiles (picture object)
8 - fpCFDIB Device-independent bitmap (picture object)
9 - fpCFPalette Color palette (picture object)
14 - fpCFEMetafile Enhanced metafile (picture object)
15 - fpCFFiles List of files
-16639 - fpCFRTF Rich text format (string data)

Remarks

The GetFormat method queries the fpDataObject to see what format it has. If the method returns True for the format you want, then you can retrieve data from the fpDataObject.

Return Type

True if the format is supported; False if not.

See Also

Files property

Copyright © GrapeCity, inc. All rights reserved.