_Document.GrammaticalErrors _Document.GrammaticalErrors _Document.GrammaticalErrors Property


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

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

Property Value


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