_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)
Syntax
'Declaration
ReadOnly Property GrammaticalErrors As ProofreadingErrors
Get
'Usage
Dim instance As _Document
Dim value As ProofreadingErrors
value = instance.GrammaticalErrors
ProofreadingErrors GrammaticalErrors { get; }
Property Value
Type: Microsoft.Office.Interop.Word.ProofreadingErrors
Remarks
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).