Table of contents
TOC
Collapse the table of content
Expand the table of content

GetFormat Method

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns an integer value indicating whether a specific format is on the DataObject. SyntaxBoolean = object. GetFormat(format) The GetFormat method syntax has these parts:

PartDescription
objectRequired. A valid object.
formatRequired. An integer or string specifying a specific format that might exist in the DataObject. If the specified format exists in the DataObject, GetFormat returns True.

Settings The settings for format are:

ValueDescription
1Text format.
A string or any integer other than 1A user-defined DataObject format passed to the DataObject from SetText.

Remarks The GetFormat method searches for a format in the current list of formats on the DataObject. If the format is on the DataObject, GetFormat returns True; if not, GetFormat returns False. The DataObject currently supports only text formats.

© 2018 Microsoft