KeyBinding.Rebind Method
Changes the command assigned to the specified key binding.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub Rebind ( _
KeyCategory As WdKeyCategory, _
Command As String, _
ByRef CommandParameter As Object _
)
'Usage
Dim instance As KeyBinding
Dim KeyCategory As WdKeyCategory
Dim Command As String
Dim CommandParameter As Object
instance.Rebind(KeyCategory, Command, _
CommandParameter)
void Rebind(
WdKeyCategory KeyCategory,
string Command,
ref Object CommandParameter
)
Parameters
- KeyCategory
Type: Microsoft.Office.Interop.Word.WdKeyCategory
Required WdKeyCategory. The key category of the specified key binding.
- Command
Type: System.String
Required String. The name of the specified command.
- CommandParameter
Type: System.Object%
Optional Object. Additional text, if any, required for the command specified by Command. For information about values for this argument, see the Add method for the KeyBindings object.