KeyboardAccelerator.Modifiers 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 to modify another keypress 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 VirtualKeyModifiers Modifiers { VirtualKeyModifiers get(); void set(VirtualKeyModifiers value); };
VirtualKeyModifiers Modifiers();
void Modifiers(VirtualKeyModifiers value);
public VirtualKeyModifiers Modifiers { get; set; }
var virtualKeyModifiers = keyboardAccelerator.modifiers;
keyboardAccelerator.modifiers = virtualKeyModifiers;
Public Property Modifiers As VirtualKeyModifiers
Property Value
The virtual key.