DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) 方法

定义

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

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

参数

e
DataGridViewCellEventArgs

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

注解

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

适用于

另请参阅