_Document.GrammaticalErrors 属性

定义

返回一个 ProofreadingErrors 集合,该集合代表在指定的文档或区域上进行语法检查失败的句子。Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified document or range.

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

属性值

ProofreadingErrors

注解

可以有多个错误,每个句子。There can be more than one error per sentence.

如果没有语法错误, CountGrammaticalErrors属性返回的ProofreadingErrors对象的属性将返回0(零)。If there are no grammatical errors, the Count property for the ProofreadingErrors object returned by the GrammaticalErrors property returns 0 (zero).

适用于