DataGridViewCellMouseEventArgs(Int32, Int32, Int32, Int32, MouseEventArgs) 建構函式

定義

初始化 DataGridViewCellMouseEventArgs 類別的新執行個體。Initializes a new instance of the DataGridViewCellMouseEventArgs class.

public:
 DataGridViewCellMouseEventArgs(int columnIndex, int rowIndex, int localX, int localY, System::Windows::Forms::MouseEventArgs ^ e);
public DataGridViewCellMouseEventArgs (int columnIndex, int rowIndex, int localX, int localY, System.Windows.Forms.MouseEventArgs e);
new System.Windows.Forms.DataGridViewCellMouseEventArgs : int * int * int * int * System.Windows.Forms.MouseEventArgs -> System.Windows.Forms.DataGridViewCellMouseEventArgs
Public Sub New (columnIndex As Integer, rowIndex As Integer, localX As Integer, localY As Integer, e As MouseEventArgs)

參數

columnIndex
Int32

儲存格之以零起始的資料行索引。The cell's zero-based column index.

rowIndex
Int32

儲存格之以零起始的資料列索引。The cell's zero-based row index.

localX
Int32

滑鼠的 X 座標 (單位為像素)。The x-coordinate of the mouse, in pixels.

localY
Int32

滑鼠的 Y 座標 (單位為像素)。The y-coordinate of the mouse, in pixels.

e
MouseEventArgs

起始的 MouseEventArgsThe originating MouseEventArgs.

例外狀況

columnIndex 小於 -1。columnIndex is less than -1.

-或--or- rowIndex 小於 -1。rowIndex is less than -1.

適用於

另請參閱