Splitter.OnSplitterMoved(SplitterEventArgs) 方法

定义

引发 SplitterMoved 事件。 OnSplitterMoved(SplitterEventArgs) 已被 OnSplitterMoved(SplitterEventArgs) 取代,且仅为与早期版本兼容而提供。

protected:
 virtual void OnSplitterMoved(System::Windows::Forms::SplitterEventArgs ^ sevent);
protected virtual void OnSplitterMoved (System.Windows.Forms.SplitterEventArgs sevent);
abstract member OnSplitterMoved : System.Windows.Forms.SplitterEventArgs -> unit
override this.OnSplitterMoved : System.Windows.Forms.SplitterEventArgs -> unit
Protected Overridable Sub OnSplitterMoved (sevent As SplitterEventArgs)

参数

sevent
SplitterEventArgs

包含事件数据的 SplitterEventArgs

注解

引发事件时,将通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件

OnSplitterMoved 方法还允许派生类对事件进行处理而不必附加委托。 这是在派生类中处理事件的首选技术。

继承者说明

在派生类中重写 OnSplitterMoved(SplitterEventArgs) 时,一定要调用基类的 OnSplitterMoved(SplitterEventArgs) 方法,以便已注册的委托对事件进行接收。

适用于

另请参阅