KeyEventArgs.IsUp 속성

정의

이벤트에서 참조하는 키가 놓여 있는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

키가 놓여 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 없습니다.

예제

다음 예제에서는 의 instance KeyEventArgs 연결된 키가 속성의 IsUp 상태를 가져와서 실행 중인지 여부를 확인합니다.

// e is an instance of KeyEventArgs.
// btnIsUp is a Button.
if (e.IsUp)
{
    btnIsUp.Background = Brushes.Red;
}
' e is an instance of KeyEventArgs.
' btnIsUp is a Button.
If e.IsUp Then
    btnIsUp.Background = Brushes.Red

설명

클래스는 Keyboard 키보드의 키 상태에 대한 정보도 제공합니다. instance 경우 메서드는 IsKeyUp 지정된 가 설정되었는지 여부를 반환합니다.

적용 대상

추가 정보