Share via


Document.GrammaticalErrors Property

Definition

Gets a ProofreadingErrors collection that represents the sentences that failed the grammar check on the document.

public:
 property Microsoft::Office::Interop::Word::ProofreadingErrors ^ GrammaticalErrors { Microsoft::Office::Interop::Word::ProofreadingErrors ^ get(); };
public Microsoft.Office.Interop.Word.ProofreadingErrors GrammaticalErrors { get; }
member this.GrammaticalErrors : Microsoft.Office.Interop.Word.ProofreadingErrors
Public ReadOnly Property GrammaticalErrors As ProofreadingErrors

Property Value

A ProofreadingErrors collection that represents the sentences that failed the grammar check on the document.

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

Applies to