Splitter.SplitterMoving 事件

在移动拆分器控件的过程中发生。Splitter.SplitterMoving 已被 SplitContainer.SplitterMoving 取代,且仅为与早期版本兼容而提供。

**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Public Event SplitterMoving As SplitterEventHandler
用法
Dim instance As Splitter
Dim handler As SplitterEventHandler

AddHandler instance.SplitterMoving, handler
public event SplitterEventHandler SplitterMoving
public:
event SplitterEventHandler^ SplitterMoving {
    void add (SplitterEventHandler^ value);
    void remove (SplitterEventHandler^ value);
}
/** @event */
public void add_SplitterMoving (SplitterEventHandler value)

/** @event */
public void remove_SplitterMoving (SplitterEventHandler value)
JScript 支持使用事件,但不支持进行新的声明。

备注

可以为 SplitterMoving 事件创建事件处理程序,以便在应用程序中执行大小调整验证。例如,如果 Splitter 控件停靠到 TreeView 控件和 ListView 控件的边缘,则可以在 SplitterMoved 事件中编写代码来确定是否已超过 TreeViewListView 控件的最小和/或最大尺寸,并限制将控件调整为它们的最小或最大尺寸。

有关处理事件的更多信息,请参见 使用事件

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

Splitter 类
Splitter 成员
System.Windows.Forms 命名空间
OnSplitterMoving
SplitterEventArgs
SplitterEventHandler
Splitter.SplitterMoved 事件