DataGridViewCell.OnContentDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnContentDoubleClick(DataGridViewCellEventArgs) Method

定義

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

參數

備註

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

適用於

另請參閱