Document.CheckSpelling Method (Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

 

Begins a spelling check for the document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  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: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of the custom dictionary.

IgnoreUppercase
Type: System.Object

true if capitalization is ignored. If this argument is omitted, the current value of the P:Microsoft.Office.Interop.Word.Options.IgnoreUppercase property is used.

AlwaysSuggest
Type: System.Object

true for Microsoft Office Word to always suggest alternative spellings. If this argument is omitted, the current value of the P:Microsoft.Office.Interop.Word.Options.SuggestSpellingCorrections property is used.

CustomDictionary2
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary3
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary4
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary5
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary6
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary7
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary8
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary9
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.Dictionary or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary10
Type: System.Object

Either an expression that returns a T:Microsoft.Office.Interop.Word.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).

For information on optional parameters, see Optional Parameters in Office Solutions.

Return to top
Show: