DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentClick(DataGridViewCellEventArgs) Method

定義

當按下儲存格內容時呼叫。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)

參數

備註

這個方法與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.

適用於

另請參閱