Javascript: TXTextControl.Proofing.addWordToUserDictionary Method
Description
Adds a word to an existing user dictionary.
Syntax
<void> TXTextControl.Proofing.addWordToUserDictionary(<string> name, <string[]> words)Parameters
| Parameter | Description |
|---|---|
| name | The user dictionary's name. |
| words | The word to add to the user dictionary. |
Examples
The following example demonstrates TXTextControl.Proofing.addWordToUserDictionary in a practical document-editing workflow. It adds a word to an existing user dictionary.
function addWordToUserDictionary(proofing) {
proofing.addWordToUserDictionary("QuarterlyReport", ["Quarterly report", "Invoice"]);
}