DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) Method

定义

在指针位于单元格上,同时用户按住鼠标按钮时进行调用。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)

参数

注解

此方法类似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.

适用于

另请参阅