Document.CheckSpelling Method
Begins a spelling check for the document.
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
void CheckSpelling( ref Object CustomDictionary, ref Object IgnoreUppercase, ref Object AlwaysSuggest, ref Object CustomDictionary2, ref Object CustomDictionary3, ref Object CustomDictionary4, ref Object CustomDictionary5, ref Object CustomDictionary6, ref Object CustomDictionary7, ref Object CustomDictionary8, ref Object CustomDictionary9, ref Object CustomDictionary10 )
Parameters
- CustomDictionary
- Type: Object
Either an expression that returns a Dictionary or the file name of the custom dictionary.
- IgnoreUppercase
- Type: Object
true if capitalization is ignored. If this argument is omitted, the current value of the IgnoreUppercase property is used.
- AlwaysSuggest
- Type: Object
true for Microsoft Office Word to always suggest alternative spellings. If this argument is omitted, the current value of the SuggestSpellingCorrections property is used.
- CustomDictionary2
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary3
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary4
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary5
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary6
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary7
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary8
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary9
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
- CustomDictionary10
- Type: Object
Either an expression that returns a Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.
If the document contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box cleared.
This method checks all available stories (such as headers, footers, and text boxes).
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.