DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) 方法

定義

當按下儲存格內容時呼叫。

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

DataGridViewCellEventArgs,其中包含事件資料。

備註

這個方法類似于 DataGridView.OnCellContentClick 方法。 它會在引發事件的相同情況下 DataGridView.CellContentClick 呼叫,但實際上不會引發事件。

適用於

另請參閱