DataGridViewCell.OnMouseDoubleClick(DataGridViewCellMouseEventArgs) 方法

定义

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

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

参数

e
DataGridViewCellMouseEventArgs

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

注解

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

适用于

另请参阅