语法
表达式.ShowGrammaticalErrors
表达式 一个代表 Document 对象的变量。
说明
只有将 CheckGrammarAsYouType 属性设为 True,才能查看文档中的语法错误。