SuggestMainOnly 属性

       

如果该值为 True,则命令 Microsoft Excel 只从主要词典中选取备选单词,以便使用拼写检查。如果该值为 False,则只取消主要词典中备选单词的限制,以便使用拼写检查。Boolean 类型,可读写。

expression.SuggestMainOnly

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

本示例中,Microsoft Excel 只从主要词典中检查备选单词的拼写检查选项,并将该状态报告给用户。

Sub UsingMainDictionary()

    ' Check the setting of suggesting words only from the main dictionary.
    If Application.SpellingOptions.SuggestMainOnly = True Then
        MsgBox "Spell checking option suggestions will only come from the main dictionary."
    Else
        MsgBox "Spell checking option suggestions are not limited to the main dictionary."
    End If

End Sub