_Document.CheckGrammar Method

Begins a spelling and grammar check for the specified document or range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub CheckGrammar
'Usage
Dim instance As _Document

instance.CheckGrammar()
void CheckGrammar()

Remarks

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

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace