GrammaticalErrors property
Collapse the table of content
Expand the table of content

_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)

ProofreadingErrors GrammaticalErrors { get; }

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).

© 2015 Microsoft