WPS 开发人员参考 |
Application.KeysBoundTo 属性 |
语法
表达式.KeysBoundTo(KeyCategory, Command, CommandParameter)
表达式 一个代表 Application 对象的变量。可选。
参数
名称 | 必选/可选 | 数据类型 | 说明 |
---|---|---|---|
KeyCategory | 必选 | WdKeyCategory | 组合键的类别。 |
Command | 必选 | String | 命令的名称。 |
CommandParameter | 可选 | Variant | 由 Command 指定的命令所需的附加文字(如果有)。有关详细信息,请参阅 KeyBindings 对象的 Add 方法的“说明”部分。 |
示例
本示例显示活动文档附加的模板中为 FileOpen 命令指定的所有组合键。
示例代码 |
---|
|
本示例删除“Normal”模板中“Macro1”的所有按键指定方案。
示例代码 |
---|
|