Share via


_Document.GrammarChecked Property

Determines if a grammar check has been run on the specified range or document.

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

Syntax

'Declaration
Property GrammarChecked As Boolean
    Get
    Set
'Usage
Dim instance As _Document
Dim value As Boolean

value = instance.GrammarChecked

instance.GrammarChecked = value
bool GrammarChecked { get; set; }

Property Value

Type: System.Boolean

Remarks

This property returns True if a grammar check has been run on the specified range or document, and False if some of the specified range or document hasn't been checked for grammar. Set the property value to True or False to enable or disable the functionality.

To recheck the grammar in a range or document, set the GrammarChecked property to False.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace