DataRepeater.OnMouseWheel 方法

引发 MouseWheel 事件。

命名空间:  Microsoft.VisualBasic.PowerPacks
程序集:  Microsoft.VisualBasic.PowerPacks.Vs(在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)

语法

声明
Protected Overrides Sub OnMouseWheel ( _
    e As MouseEventArgs _
)
protected override void OnMouseWheel(
    MouseEventArgs e
)
protected:
virtual void OnMouseWheel(
    MouseEventArgs^ e
) override
abstract OnMouseWheel : 
        e:MouseEventArgs -> unit 
override OnMouseWheel : 
        e:MouseEventArgs -> unit 
protected override function OnMouseWheel(
    e : MouseEventArgs
)

参数

备注

引发事件时会通过委托调用事件处理程序。有关更多信息,请参见 引发事件

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

对继承者的说明

在派生类中重写 OnMouseWheel 时,请确保调用基类的 OnMouseWheel 方法,以使注册的委托能接收事件。

.NET Framework 安全性

请参见

参考

DataRepeater 类

Microsoft.VisualBasic.PowerPacks 命名空间

其他资源

DataRepeater 控件简介 (Visual Studio)