DataGridViewCell.OnContentDoubleClick(DataGridViewCellEventArgs) 方法

定义

在双击单元格的内容时进行调用。Called when the cell's contents are double-clicked.

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

参数

e
DataGridViewCellEventArgs

包含事件数据的 DataGridViewCellEventArgsA DataGridViewCellEventArgs that contains the event data.

注解

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

适用于

另请参阅