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