MisspelledWordInfo Object
Description
Information about a misspelled word.
Syntax
{
isDuplicate: <Boolean>,
isIgnored: <Boolean>,
length: <Number>,
number: <Number>,
start: <Number>,
text: <String>
}Examples
The following example demonstrates MisspelledWordInfo in a practical document-editing workflow. Information about a misspelled word.
function inspectMisspelledWordInfo(misspelledWordInfo) {
console.log("is duplicate:", misspelledWordInfo.isDuplicate);
console.log("is ignored:", misspelledWordInfo.isIgnored);
console.log("length:", misspelledWordInfo.length);
console.log("number:", misspelledWordInfo.number);
}Members
Properties
| Property | Description |
|---|---|
| isDuplicate | A value which marks the misspelled word as duplicate. |
| isIgnored | A value which marks the misspelled word as ignored. |
| length | The length of the misspelled word. |
| number | The number of the misspelled word. |
| start | The starting position of the misspelled word. |
| text | The text of the misspelled word. |