Control.OnMouseDoubleClick(MouseButtonEventArgs) 方法

定義

引發 MouseDoubleClick 路由事件。Raises the MouseDoubleClick routed event.

protected:
 virtual void OnMouseDoubleClick(System::Windows::Input::MouseButtonEventArgs ^ e);
protected virtual void OnMouseDoubleClick (System.Windows.Input.MouseButtonEventArgs e);
abstract member OnMouseDoubleClick : System.Windows.Input.MouseButtonEventArgs -> unit
override this.OnMouseDoubleClick : System.Windows.Input.MouseButtonEventArgs -> unit
Protected Overridable Sub OnMouseDoubleClick (e As MouseButtonEventArgs)

參數

e
MouseButtonEventArgs

事件資料。The event data.

備註

控制項會藉 MouseDoubleClick 由呼叫方法來引發事件 RaiseEventThe control raises the MouseDoubleClick event by calling the RaiseEvent method. 如需詳細資訊,請參閱 路由事件總覽For more information, see Routed Events Overview.

給繼承者的注意事項

OnMouseDoubleClick(MouseButtonEventArgs)在衍生類別中覆寫時,請務必呼叫基類的方法, OnMouseDoubleClick(MouseButtonEventArgs) 讓已註冊的委派能接收事件。When overriding OnMouseDoubleClick(MouseButtonEventArgs) in a derived class, be sure to call the base class' OnMouseDoubleClick(MouseButtonEventArgs) method so that registered delegates receive the event.

適用於