DataGridViewButtonCell.OnMouseMove(DataGridViewCellMouseEventArgs) 方法

定义

当鼠标指针位于单元格上并移动指针时调用。Called when the mouse pointer moves while it is over the cell.

protected:
 override void OnMouseMove(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override void OnMouseMove (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.OnMouseMove : System.Windows.Forms.DataGridViewCellMouseEventArgs -> unit
Protected Overrides Sub OnMouseMove (e As DataGridViewCellMouseEventArgs)

参数

e
DataGridViewCellMouseEventArgs

包含事件数据的 DataGridViewCellMouseEventArgsA DataGridViewCellMouseEventArgs that contains the event data.

注解

此方法类似于 Control.OnMouseMove 方法。This method is similar to the Control.OnMouseMove method. 在引发事件的相同情况下,它会被调用 Control.MouseMove ,但实际上不会引发事件。It is called in the same circumstances in which a Control.MouseMove event is raised, but it does not actually raise the event.

继承者说明

在派生类中重写 OnMouseMove(DataGridViewCellMouseEventArgs) 时,一定要调用基类的 OnMouseMove(DataGridViewCellMouseEventArgs) 方法,以便已注册的委托对事件进行接收。When overriding OnMouseMove(DataGridViewCellMouseEventArgs) in a derived class, be sure to call the base class's OnMouseMove(DataGridViewCellMouseEventArgs) method so that registered delegates receive the event.

适用于

另请参阅