This documentation is archived and is not being maintained.

_Document.GrammaticalErrors Property

Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified document or range.

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

'Declaration
ReadOnly Property GrammaticalErrors As ProofreadingErrors
	Get
'Usage
Dim instance As _Document
Dim value As ProofreadingErrors

value = instance.GrammaticalErrors

There can be more than one error per sentence.

If there are no grammatical errors, the Count property for the ProofreadingErrors object returned by the GrammaticalErrors property returns 0 (zero).

Show: