_Document.CheckGrammar 方法

定义

开始对指定的文档或区域执行拼写和语法检查。Begins a spelling and grammar check for the specified document or range.

public:
 void CheckGrammar();
public void CheckGrammar ();
abstract member CheckGrammar : unit -> unit
Public Sub CheckGrammar ()

注解

如果文档或区域中包含错误,则该方法显示 "拼写和语法" 对话框("工具" 菜单),并选中 "检查语法" 复选框。If the document or range contains errors, this method displays the Spelling and Grammar dialog box (Tools menu), with the Check grammar check box selected. 该方法应用于文档时,将检查文档中所有可用文字的拼写(如页眉、页脚和文本框)。When applied to a document, this method checks all available stories (such as headers, footers, and text boxes).

适用于