Share via


Document.CheckGrammar Method (2007 System)

Begins a spelling and grammar check for the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Sub CheckGrammar
'Usage
Dim instance As Document

instance.CheckGrammar()
public void CheckGrammar()
public:
void CheckGrammar()
public function CheckGrammar()

Remarks

If the document contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box selected.

This method checks all available stories (such as headers, footers, and text boxes).

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace