VirtualKey Property (KeyBinding Object)

Object: KeyBinding Object

Access: Read-Only

Returns the ANSI number of the key associated with the keybinding object.

Usage

KeyBinding.VirtualKey

Arguments

None.

Return Values

A long that represents the ANSI number of the key associated with the keybinding object.

Examples

' With BindingTables object defined 
' Assign shortcut keys Alt+2 to View->FitAll command 
docBindingTables.AddKeyBinding "Alt+2", "View->FitAll", 0, 1 
 
' With KeyBindings object defined 
' VirtualKey property will return 50 which is the ANSI number of key "2" 
MsgBox docKeyBindings.Item(1).VirtualKey