Compartilhar via


SpellingSuggestions.SpellingErrorType Property

Word Developer Reference

Returns the spelling error type. Read-only WdSpellingErrorType.

Syntax

expression.SpellingErrorType

expression   Required. A variable that represents a SpellingSuggestions collection.

Remarks

Use the GetSpellingSuggestions method to return a collection of words suggested as spelling replacements. If a word is misspelled, the CheckSpelling method returns True.

Example

If the first word in the active document isn't in the dictionary, this example displays "Unknown word" in the status bar.

Visual Basic for Applications
  Set suggs = ActiveDocument.Content.GetSpellingSuggestions
If suggs.SpellingErrorType = wdSpellingNotInDictionary Then
    StatusBar = "Unknown word"
End If

See Also