Control.OnMouseLeave(EventArgs) メソッド
定義
MouseLeave イベントを発生させます。Raises the MouseLeave event.
protected:
virtual void OnMouseLeave(EventArgs ^ e);
protected virtual void OnMouseLeave (EventArgs e);
abstract member OnMouseLeave : EventArgs -> unit
override this.OnMouseLeave : EventArgs -> unit
Protected Overridable Sub OnMouseLeave (e As EventArgs)
パラメーター
注釈
イベントを発生させると、イベント ハンドラーがデリゲートから呼び出されます。Raising an event invokes the event handler through a delegate. 詳細については、次を参照してください。処理とイベントの発生します。For more information, see Handling and Raising Events.
OnMouseLeave メソッドを使用すると、デリゲートを結び付けずに、派生クラスでイベントを処理することもできます。The OnMouseLeave method also allows derived classes to handle the event without attaching a delegate. 派生クラスでイベントを処理する場合は、この手法をお勧めします。This is the preferred technique for handling the event in a derived class.
注意 (継承者)
派生クラスで OnMouseLeave(EventArgs) をオーバーライドする場合は、登録されているデリゲートがイベントを受け取ることができるように、基本クラスの OnMouseLeave(EventArgs) メソッドを呼び出してください。When overriding OnMouseLeave(EventArgs) in a derived class, be sure to call the base class's OnMouseLeave(EventArgs) method so that registered delegates receive the event.