DataGridViewCellMouseEventArgs(Int32, Int32, Int32, Int32, MouseEventArgs) Constructor

Definition

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);
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)

Parameters

columnIndex
Int32

The cell's zero-based column index.

rowIndex
Int32

The cell's zero-based row index.

localX
Int32

The x-coordinate of the mouse, in pixels.

localY
Int32

The y-coordinate of the mouse, in pixels.

e
MouseEventArgs

The originating MouseEventArgs.

Exceptions

columnIndex is less than -1.

-or-

rowIndex is less than -1.

Applies to

See also