TextBoxBase.OnKeyDown(KeyEventArgs) 方法

定義

每當未處理的 KeyDown 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled KeyDown attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

protected:
 override void OnKeyDown(System::Windows::Input::KeyEventArgs ^ e);
protected override void OnKeyDown (System.Windows.Input.KeyEventArgs e);
override this.OnKeyDown : System.Windows.Input.KeyEventArgs -> unit
Protected Overrides Sub OnKeyDown (e As KeyEventArgs)

參數

e
KeyEventArgs

提供有關事件的資料。Provides data about the event.

適用於

另請參閱