KeyEventArgs.IsRepeat 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이벤트에서 참조하는 키보드 키가 반복되는 키인지 여부를 나타내는 값을 가져옵니다.
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