Javascript: TXTextControl.Proofing.loadUserDictionary Method
Description
Loads a list of words given as a string array as a user dictionary.
Syntax
<void> TXTextControl.Proofing.loadUserDictionary(<string> name, <string[]> words, <string> language)Parameters
| Parameter | Description |
|---|---|
| name | The user dictionary's name. |
| words | The list of words to create the user dictionary from. |
| language | The user dictionary's language in the format languagecode2-country/regioncode2. (e. g. "en-US" or "de-DE") |
Examples
The following example demonstrates TXTextControl.Proofing.loadUserDictionary in a practical document-editing workflow. It loads a list of words given as a string array as a user dictionary.
function loadUserDictionary(proofing) {
proofing.loadUserDictionary("QuarterlyReport", ["Quarterly report", "Invoice"], "Quarterly report");
}