DataGridViewCell.OnMouseMove(DataGridViewCellMouseEventArgs) 方法

定义

当鼠标指针在单元格内移动时调用。Called when the mouse pointer moves within a cell.

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

参数

e
DataGridViewCellMouseEventArgs

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

注解

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

适用于

另请参阅