Console.NumberLock 属性

定义

获取一个值,该值指示 Num Lock 键盘切换键是打开的还是关闭的。Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or turned off.

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

属性值

如果 Num Lock 是打开的,则为 true;如果 Num Lock 是关闭的,则为 falsetrue if NUM LOCK is turned on; false if NUM LOCK is turned off.

异常

get 操作在 Windows 之外的操作系统上调用。The get operation is invoked on an operating system other than Windows.

适用于