Options.AutoKeyboardSwitching 属性 (Word)Options.AutoKeyboardSwitching property (Word)

True如果 Microsoft Word 自动切换键盘语言,以匹配您正在键入在任何给定时间。True if Microsoft Word automatically switches the keyboard language to match what you are typing at any given time. 读/写 BooleanRead/write Boolean.

语法Syntax

表达式expression. AutoKeyboardSwitching

_表达式_代表选项对象的变量。expression A variable that represents an 'Options' object.

备注Remarks

若要使用此属性,您必须将**CheckLanguage** 属性设为TrueTo use this property, you must have the CheckLanguage property set to True.

示例Example

本示例请用户选择是否启用多语言文档的键盘自动切换功能。This example asks the user to choose whether or not to enable automatic keyboard switching for multilingual documents.

x = MsgBox("Enable automatic keyboard switching?", vbYesNo) 
If x = vbYes Then 
 Application.CheckLanguage = True 
 Options.AutoKeyboardSwitching = True 
 MsgBox "Automatic keyboard switching enabled!" 
End If

另请参阅See also

选项对象Options Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.