KeyBinding.Disable Method

Removes the specified key combination if it's currently assigned to a command.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub Disable
'Usage
Dim instance As KeyBinding

instance.Disable()
void Disable()

Remarks

After you use this method, the key combination has no effect. Using this method is the equivalent to clicking the Remove button in the Customize Keyboard dialog box (Tools menu).

Use the Clear method with a KeyBinding object to reset a built-in command to its default key assignment. You don't need to remove or rebind a KeyBinding object before adding it elsewhere.

See Also

Reference

KeyBinding Interface

KeyBinding Members

Microsoft.Office.Interop.Word Namespace