DataGridViewCell.OnDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnDoubleClick(DataGridViewCellEventArgs) DataGridViewCell.OnDoubleClick(DataGridViewCellEventArgs) Method

定義

當按兩下儲存格時呼叫。Called when the cell is double-clicked.

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

參數

備註

這個方法與DataGridView.OnCellDoubleClick方法類似。This method is similar to the DataGridView.OnCellDoubleClick method. 在引發DataGridView.CellDoubleClick事件的相同情況下呼叫它,但實際上並不會引發事件。It is called in the same circumstances in which a DataGridView.CellDoubleClick event is raised, but it does not actually raise the event.

適用於

另請參閱