VirtualKeyModifiers Enum
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.
Specifies the virtual key used to modify another keypress. For example, the Ctrl key when pressed in conjunction with another key, as in Ctrl+C.
This enumeration supports a bitwise combination of its member values.
public enum class VirtualKeyModifiers
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class VirtualKeyModifiers
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum VirtualKeyModifiers
var value = Windows.System.VirtualKeyModifiers.none
Public Enum VirtualKeyModifiers
- Inheritance
-
VirtualKeyModifiers
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Control | 1 | The Ctrl virtual key. |
Menu | 2 | The Alt virtual key. |
None | 0 | No virtual key modifier. |
Shift | 4 | The Shift virtual key. |
Windows | 8 | The Windows virtual key. |
Remarks
This enum is used with the Modifiers property of a KeyboardAccelerator object. For more information, including code examples, see Keyboard Accelerators.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor