Skip to content
本页内容

IgnoreCaps (属性)

如果该属性值为 False,则指示 ET 检查大写单词。如果该值为 True,则指示 ET 在使用拼写检查时忽略大写单词。可读/写 bool 类型。

示例

python
#在本示例中,ET 将确定检查大写单词的拼写时使用何种设置,并通知给用户
def test():
    if Application.SpellingOptions.IgnoreCaps:
        print("Spelling options for checking uppercase words is disabled.")
    else:
        print("Spelling options for checking uppercase words is enabled.")
python
#本示例设置 ET 在使用拼写检查时检查大写单词
def test():
    Application.SpellingOptions.IgnoreCaps = False