AutoCorrect (object)

<< Click to Display Table of Contents >>

AutoCorrect (object)

Access path: Application à AutoCorrect

 1  Description

The AutoCorrect object contains settings related to automatic text correction and all SmartText entries.

 2  Access to the object

There is exactly one instance of the AutoCorrect object during the whole runtime of TextMaker. It is accessed through Application.AutoCorrect:

Set tm = CreateObject("TextMaker.Application")

tm.Application.AutoCorrect.CorrectInitialCaps = True

 3  Properties, objects, collections and methods

Properties:

CorrectInitialCaps

CorrectSentenceCaps

ReplaceText

 

Objects:

Application Application

Parent Application

 

Collections:

Entries AutoCorrectEntries

CorrectInitialCaps (property)

Data type: Boolean

Gets or sets the setting "Correct first two uppercase letters".

If this property is True, TextMaker automatically corrects the case of the second letter in words that begin with two capital letters (for example "HEnry" will be changed to "Henry").

CorrectSentenceCaps (property)

Data type: Boolean

Gets or sets the setting "Capitalize first letter of sentences".

If this property is True, TextMaker capitalizes the first letter of a sentence in case it was accidentally written in lowercase.

ReplaceText (property)

Data type: Boolean

Gets or sets the setting "Expand SmartText entries".

If this property is True, SmartText entries entered in the document will be automatically replaced by the SmartText content (for example: You type "sd" and TextMaker expands it with "sales department").

Application (pointer to object)

Data type: Object

Returns the Application object.

Parent (pointer to object)

Data type: Object

Returns the parent object, i.e. Application.

Entries (pointer to collection)

Data type: Object

Returns the AutoCorrectEntries collection which contains all SmartText entries.