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