Partager via


KeyBinding Members

Include Protected Members
Include Inherited Members

Represents a custom key assignment in the current context.

The KeyBinding type exposes the following members.

Methods

  Name Description
Public method Clear Removes the key binding from the KeyBindings collection and resets a built-in command to its default key assignment.
Public method Disable Removes the specified key combination if it's currently assigned to a command.
Public method Execute Runs the command associated with the specified key combination.
Public method Rebind Changes the command assigned to the specified key binding.

Top

Properties

  Name Description
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property Command Returns the command assigned to the specified key combination.
Public property CommandParameter Returns the command parameter assigned to the specified shortcut key.
Public property Context Returns an object that represents the storage location of the specified key binding. This property can return a Document, Template, or Application object.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property KeyCategory Returns the type of item assigned to the specified key binding.
Public property KeyCode Returns a unique number for the first key in the specified key binding.
Public property KeyCode2 Returns a unique number for the second key in the specified key binding.
Public property KeyString Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A).
Public property Parent Returns an object that represents the parent object of the specified object.
Public property Protected True if you cannot change the specified key binding in the Customize Keyboard dialog box (from the Tools menu, click Customize, and then click the Keyboard button).

Top

See Also

Reference

KeyBinding Interface

Microsoft.Office.Interop.Word Namespace