Javascript: TXTextControl.MisspelledWordKind Enumeration
Description
Specifies the kind of a misspelled word.
Members
| Member | Description |
|---|---|
| All | Specifies all misspelled words. |
| Duplicate | Specifies all misspelled words which are marked as duplicate. |
| Ignored | Specifies all misspelled words which are marked as ignored. |
| Normal | Specifies all misspelled words which do not have a special meaning. |
Examples
The following example uses TXTextControl.MisspelledWordKind.All (specifies all misspelled words.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function applyMisspelledWordKind(misspelledWords) {
misspelledWords.getCountOf(
TXTextControl.MisspelledWordKind.All,
function(result) {
console.log("get count of result:", result);
},
onTxError
);
}