Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_Document.CheckSpelling Method

Begins a spelling check for the specified document or range.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim CustomDictionary As Object
Dim IgnoreUppercase As Object
Dim AlwaysSuggest As Object
Dim CustomDictionary2 As Object
Dim CustomDictionary3 As Object
Dim CustomDictionary4 As Object
Dim CustomDictionary5 As Object
Dim CustomDictionary6 As Object
Dim CustomDictionary7 As Object
Dim CustomDictionary8 As Object
Dim CustomDictionary9 As Object
Dim CustomDictionary10 As Object
Dim _Document1 As _Document
_Document1.CheckSpelling(CustomDictionary, IgnoreUppercase, AlwaysSuggest, CustomDictionary2, CustomDictionary3, CustomDictionary4, CustomDictionary5, CustomDictionary6, CustomDictionary7, CustomDictionary8, CustomDictionary9, CustomDictionary10)

void CheckSpelling(
	[In, Optional] ref object CustomDictionary, 
	[In, Optional] ref object IgnoreUppercase, 
	[In, Optional] ref object AlwaysSuggest, 
	[In, Optional] ref object CustomDictionary2, 
	[In, Optional] ref object CustomDictionary3, 
	[In, Optional] ref object CustomDictionary4, 
	[In, Optional] ref object CustomDictionary5, 
	[In, Optional] ref object CustomDictionary6, 
	[In, Optional] ref object CustomDictionary7, 
	[In, Optional] ref object CustomDictionary8, 
	[In, Optional] ref object CustomDictionary9, 
	[In, Optional] ref object CustomDictionary10
);
public void CheckSpelling(
	/*in*/System.Object CustomDictionary, 
	/*in*/System.Object IgnoreUppercase, 
	/*in*/System.Object AlwaysSuggest, 
	/*in*/System.Object CustomDictionary2, 
	/*in*/System.Object CustomDictionary3, 
	/*in*/System.Object CustomDictionary4, 
	/*in*/System.Object CustomDictionary5, 
	/*in*/System.Object CustomDictionary6, 
	/*in*/System.Object CustomDictionary7, 
	/*in*/System.Object CustomDictionary8, 
	/*in*/System.Object CustomDictionary9, 
	/*in*/System.Object CustomDictionary10
);
function CheckSpelling(
	 CustomDictionary : Object, 
	 IgnoreUppercase : Object, 
	 AlwaysSuggest : Object, 
	 CustomDictionary2 : Object, 
	 CustomDictionary3 : Object, 
	 CustomDictionary4 : Object, 
	 CustomDictionary5 : Object, 
	 CustomDictionary6 : Object, 
	 CustomDictionary7 : Object, 
	 CustomDictionary8 : Object, 
	 CustomDictionary9 : Object, 
	 CustomDictionary10 : Object
);

Parameters

CustomDictionary

Optional Object. Either an expression that returns a Dictionary object or the file name of the custom dictionary.

IgnoreUppercase

Optional Object. True if capitalization is ignored. If this argument is omitted, the current value of the IgnoreUppercase property is used.

AlwaysSuggest

Optional Object. True for Microsoft Word to always suggest alternative spellings. If this argument is omitted, the current value of the SuggestSpellingCorrections property is used.

CustomDictionary2

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary3

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary4

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary5

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary6

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary7

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary8

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary9

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

CustomDictionary10

Optional Object. Either an expression that returns a Dictionary object or the file name of an additional custom dictionary. You can specify as many as nine additional dictionaries.

If the document or range contains errors, this method displays the Spelling and Grammar dialog box (Tools menu), with the Check grammar check box cleared. For a document, this method checks all available stories (such as headers, footers, and text boxes).


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: