KeyEventArgs.IsRepeat Özellik

Tanım

Olay tarafından başvuruda bulunilen klavye tuşunun yinelenen bir tuş olup olmadığını gösteren bir değer alır.

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

Özellik Değeri

true anahtar yinelenirse; aksi takdirde , false. Varsayılan değer yoktur.

Örnekler

Aşağıdaki örnek, özelliğinin durumunu alarak bir örneğiyle KeyEventArgs ilişkili anahtarın IsRepeat yinelenen bir anahtar olup olmadığını denetler.

// 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

Şunlara uygulanır

Ayrıca bkz.