如果为 True,则不能更改“自定义键盘”对话框(在“工具”菜单上,单击“自定义”,再单击“键盘”按钮)中的指定组合键。Boolean 类型,只读。
expression.Protected
expression 必需。该表达式返回一个 KeyBinding 对象。
无论其保护状态如何,都可用 KeyBindings 对象的 Add 方法添加组合键。
本示例显示 Ctrl+S 的保护状态。
CustomizationContext = ActiveDocument.AttachedTemplate
MsgBox FindKey(BuildKeyCode(wdKeyControl, wdKeyS)).Protected
如果 A 已加以保护,则本示例显示一条消息。
CustomizationContext = NormalTemplate
If FindKey(BuildKeyCode(wdKeyA)).Protected = True Then
MsgBox "The A key is protected"
End If