ControlKeyStates Enumeration

Defines the states of specific control keys, such as the ALT key, CTRL key, SCROLL key, and CAPSLOCK key.


Namespace: System.Management.Automation.Host
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ControlKeyStates

[FlagsAttribute] 
public enum class ControlKeyStates
/** @attribute FlagsAttribute() */ 
public enum ControlKeyStates
FlagsAttribute 
public enum ControlKeyStates

Member nameDescription
CapsLockOnThe CAPSLOCK key is turned on.
EnhancedKeyThe key is enhanced.
LeftAltPressedThe left ALT key is pressed.
LeftCtrlPressedThe left CTRL key is pressed.
NumLockOnThe NUMLOCK key is turned on.
RightAltPressedThe right ALT key is pressed.
RightCtrlPressedThe right CTRL key is pressed.
ScrollLockOnThe SCROLLLOCK key is turned on.
ShiftPressedThe SHIFT key is pressed.

 

Target Platforms


Show:
© 2015 Microsoft