KeyboardAccelerator.Key KeyboardAccelerator.Key KeyboardAccelerator.Key KeyboardAccelerator.Key Property

Definition

Gets or sets the virtual key (used in conjunction with one or more modifier keys) for a keyboard shortcut (accelerator).

A keyboard shortcut is invoked when the modifier keys associated with the shortcut are pressed and then the non-modifier key is pressed at the same time. For example, Ctrl+C for copy and Ctrl+S for save.

public : VirtualKey Key { get; set; }
VirtualKey Key();

void Key(VirtualKey key);
public VirtualKey Key { get; set; }
Public ReadWrite Property Key As VirtualKey

Property Value

The virtual key.

See also