Range.GrammaticalErrors Property

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

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


ReadOnly Property GrammaticalErrors As ProofreadingErrors
Dim instance As Range
Dim value As ProofreadingErrors

value = instance.GrammaticalErrors
ProofreadingErrors GrammaticalErrors { get; }

Property Value

Type: Microsoft.Office.Interop.Word.ProofreadingErrors


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

See Also


Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace