Share via


KeyBinding Object Members

Word Developer Reference

Represents a custom key assignment in the current context. The KeyBinding object is a member of the KeyBindings collection.

Methods

  Name Description
Bb243494.methods(en-us,office.12).gif Clear Removes the specified key binding from the KeyBindings collection and resets a built-in command to its default key assignment.
Bb243494.methods(en-us,office.12).gif Disable Removes the specified key combination if it is currently assigned to a command. After you use this method, the key combination has no effect.
Bb243494.methods(en-us,office.12).gif Execute Runs the command associated with the specified key combination.
Bb243494.methods(en-us,office.12).gif Rebind Changes the command assigned to the specified key binding.

Properties

  Name Description
Bb243494.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb243494.properties(en-us,office.12).gif Command Returns the command assigned to the specified key combination. Read-only String.
Bb243494.properties(en-us,office.12).gif CommandParameter Returns the command parameter assigned to the specified shortcut key. Read-only String.
Bb243494.properties(en-us,office.12).gif Context Returns an Object that represents the storage location of the specified key binding. Read-only.
Bb243494.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb243494.properties(en-us,office.12).gif KeyCategory Returns the type of item assigned to the specified key binding. Read-only WdKeyCategory.
Bb243494.properties(en-us,office.12).gif KeyCode Returns a unique number for the first key in the specified key binding. Read-only Long.
Bb243494.properties(en-us,office.12).gif KeyCode2 Returns a unique number for the second key in the specified key binding. Read-only Long.
Bb243494.properties(en-us,office.12).gif KeyString Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A). Read-only String.
Bb243494.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified KeyBinding object.
Bb243494.properties(en-us,office.12).gif Protected True if you cannot change the specified key binding in the Customize Keyboard dialog box. Read-only Boolean.