DataGridViewCell.OnMouseDown(DataGridViewCellMouseEventArgs) 方法

定義

當滑鼠指標在儲存格上,使用者按住滑鼠按鈕時呼叫。Called when the user holds down a mouse button while the pointer is on a cell.

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

參數

e
DataGridViewCellMouseEventArgs

DataGridViewCellMouseEventArgs,其中包含事件資料。A DataGridViewCellMouseEventArgs that contains the event data.

備註

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

適用於

另請參閱