Console.NumberLock Property


Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or turned off.

 static property bool NumberLock { bool get(); };
public static bool NumberLock { get; }
member this.NumberLock : bool
Public Shared ReadOnly Property NumberLock As Boolean

Property Value

true if NUM LOCK is turned on; false if NUM LOCK is turned off.


The get operation is invoked on an operating system other than Windows.

Applies to