Add Method

Applies to TestComplete 15.20, last modified on January 19, 2022
This method is provided by the legacy OCR plugin. In version 12.60, the plugin was replaced with the new Optical Character Recognition plugin powered by Google Cloud Vision API. To learn more, see Optical Character Recognition.
The legacy OCR plugin was removed from TestComplete in version 12.60. If you need to use objects, methods, and properties provided by the legacy plugin with this version of TestComplete, please contact our Customer Care team. The legacy OCR plugin was restored in TestComplete version 14.0. To use the objects, methods, and properties with this or later TestComplete version, you need to install and enable the plugin manually.

Description

The FontCollection.Add method lets you create a new item in the given font collection represented by the FontCollection object.

Declaration

FontCollectionObj.Add()

FontCollectionObj An expression, variable or parameter that specifies a reference to a FontCollection object
Result A Font object

Applies To

The method is applied to the following object:

Result Value

A Font object for the newly created item of the font collection.

Example

To view an example that demonstrates how to use the Add method, see the General Recognition Procedure section of the Using Optical Character Recognition - Overview topic.

See Also

FontCollection.Item
FontCollection.Count
Font Object
Using Optical Character Recognition - Overview

Highlight search results