Method ScreenToCell
ScreenToCell(int, int)
Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(int clientX, int clientY)
Parameters
clientX
intX offset from the top left of the control.
clientY
intY offset from the top left of the control.
Returns
- Point?
Cell clicked or null.
ScreenToCell(Point)
Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(Point client)
Parameters
client
Pointoffset from the top left of the control.
Returns
- Point?
The position.
ScreenToCell(int, int, out int?)
. Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(int clientX, int clientY, out int? headerIfAny)
Parameters
clientX
intX offset from the top left of the control.
clientY
intY offset from the top left of the control.
headerIfAny
int?If the click is in a header this is the column clicked.
Returns
ScreenToCell(Point, out int?)
Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(Point client, out int? headerIfAny)
Parameters
client
Pointoffset from the top left of the control.
headerIfAny
int?If the click is in a header this is the column clicked.
Returns
ScreenToCell(int, int, out int?, out int?)
Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(int clientX, int clientY, out int? headerIfAny, out int? offsetX)
Parameters
clientX
intX offset from the top left of the control.
clientY
intY offset from the top left of the control.
headerIfAny
int?If the click is in a header this is the column clicked.
offsetX
int?The horizontal offset of the click within the returned cell.
Returns
ScreenToCell(Point, out int?, out int?)
Returns the column and row of Table that corresponds to a given point on the screen (relative to the control client area). Returns null if the point is in the header, no table is loaded or outside the control bounds.
public Point? ScreenToCell(Point client, out int? headerIfAny, out int? offsetX)
Parameters
client
Pointoffset from the top left of the control.
headerIfAny
int?If the click is in a header this is the column clicked.
offsetX
int?The horizontal offset of the click within the returned cell.