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