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)

Dim instance As ControlKeyStates

public enum class ControlKeyStates
/** @attribute FlagsAttribute() */ 
public enum ControlKeyStates
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

© 2015 Microsoft