ComponentOne Studio for WinRT XAML
KeyDown イベント (C1RichTextBox)

C1RichTextBox にフォーカスがあるときにキーボードのキーが押されると発生します。
構文
'宣言
 
Public Shadows Event KeyDown As Windows.UI.Xaml.Input.KeyEventHandler
public new event Windows.UI.Xaml.Input.KeyEventHandler KeyDown
イベント データ

イベント ハンドラが、このイベントに関連するデータを含む、Windows.UI.Xaml.Input.KeyRoutedEventArgs 型の引数を受け取りました。次の KeyRoutedEventArgs プロパティには、このイベントの固有の情報が記載されます。

プロパティ解説
Handled Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again.
Key Gets the keyboard key associated with the event.
KeyStatus Gets a structure value that reports various system-detected characteristics of the key press, including repeat count and menu status.
OriginalSourceWindows.UI.Xaml.RoutedEventArgsから継承されます。  
解説
このイベントは、ハンドラがキー押下のデフォルトの動作を回避できるようにするために、Windows.UI.Xaml.UIElement の KeyDown をオーバーライドします。
参照

C1RichTextBox クラス
C1RichTextBox メンバ

 

 


Copyright © GrapeCity inc. All rights reserved.