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
clientXintX offset from the top left of the control.
clientYintY 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
clientPointoffset 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
clientXintX offset from the top left of the control.
clientYintY offset from the top left of the control.
headerIfAnyint?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
clientPointoffset from the top left of the control.
headerIfAnyint?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
clientXintX offset from the top left of the control.
clientYintY offset from the top left of the control.
headerIfAnyint?If the click is in a header this is the column clicked.
offsetXint?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
clientPointoffset from the top left of the control.
headerIfAnyint?If the click is in a header this is the column clicked.
offsetXint?The horizontal offset of the click within the returned cell.