DataGridView.OnCellContentDoubleClick(DataGridViewCellEventArgs) 方法

定义

引发 CellContentDoubleClick 事件。

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

参数

例外

eColumnIndex 属性值大于控件中的列数减一。

- 或 -

eRowIndex 属性值大于控件中的行数减一。

注解

引发事件时,将通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件

OnCellContentDoubleClick 方法还允许派生类对事件进行处理而不必附加委托。 这是在派生类中处理事件的首选技术。

继承者说明

在派生类中重写 OnCellContentDoubleClick(DataGridViewCellEventArgs) 时,请务必调用基类的 OnCellContentDoubleClick(DataGridViewCellEventArgs) 方法,以便注册的委托接收 事件。

适用于

另请参阅