DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) 方法

定义

在指针位于单元格上,同时用户按住鼠标按钮时进行调用。Called when the user holds down a mouse button while the pointer is on a cell.

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

参数

e
DataGridViewCellMouseEventArgs

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

注解

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

适用于

另请参阅