Class NoxGridCellMouseEventArgs
Mouse event on a cell (DataGridView's DataGridViewCellMouseEventArgs). X and Y are relative to the cell. Column header: RowIndex = -1. Row header: ColumnIndex = -1. Top-left corner: both -1.
public class NoxGridCellMouseEventArgs : MouseEventArgs
- Inheritance
-
NoxGridCellMouseEventArgs
- Inherited Members
Constructors
NoxGridCellMouseEventArgs(int, int, NoxGridColumn, int, int, MouseEventArgs, Point, Keys)
Creates the event data.
public NoxGridCellMouseEventArgs(int rowIndex, int columnIndex, NoxGridColumn column, int localX, int localY, MouseEventArgs e, Point gridLocation, Keys modifiers)
Parameters
rowIndexintcolumnIndexintcolumnNoxGridColumnlocalXintlocalYinteMouseEventArgsgridLocationPointmodifiersKeys
Properties
Column
The column (Nothing for a row header).
public NoxGridColumn Column { get; }
Property Value
ColumnIndex
Column index (Columns order; -1 for a row header).
public int ColumnIndex { get; }
Property Value
GridLocation
Mouse position in grid coordinates (X and Y are relative to the cell).
public Point GridLocation { get; }
Property Value
Handled
CellMouseDown: true skips the grid's own handling (check box toggle, selection, column drag). ColumnHeaderMouseClick: true skips sorting.
public bool Handled { get; set; }
Property Value
Modifiers
Shift, Ctrl and Alt held at that moment.
public Keys Modifiers { get; }
Property Value
RowIndex
Row index of the cell (-1 for a column header).
public int RowIndex { get; }