KeyEventArgs.IsRepeat 속성

정의

이벤트에서 참조하는 키보드 키가 반복되는 키인지 여부를 나타내는 값을 가져옵니다.

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

속성 값

키가 반복되면 true이고, 그렇지 않으면 false입니다. 기본값은 없습니다.

예제

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

// e is an instance of KeyEventArgs.
// btnIsRepeat is a Button.
if (e.IsRepeat)
{
    btnIsRepeat.Background = Brushes.AliceBlue;
}
' e is an instance of KeyEventArgs.
' btnIsRepeat is a Button.
If e.IsRepeat Then
    btnIsRepeat.Background = Brushes.AliceBlue
End If

적용 대상

추가 정보