Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

KeyboardAccelerator.Key Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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:
 property VirtualKey Key { VirtualKey get(); void set(VirtualKey value); };
VirtualKey Key();

void Key(VirtualKey value);
public VirtualKey Key { get; set; }
var virtualKey = keyboardAccelerator.key;
keyboardAccelerator.key = virtualKey;
Public Property Key As VirtualKey

Property Value

The virtual-key.

Applies to

See also


Feedback

Was this page helpful?