Table of Contents

Method ScreenToCell

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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 int

X offset from the top left of the control.

clientY int

Y 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 Point

offset 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 int

X offset from the top left of the control.

clientY int

Y offset from the top left of the control.

headerIfAny int?

If the click is in a header this is the column clicked.

Returns

Point?

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 Point

offset from the top left of the control.

headerIfAny int?

If the click is in a header this is the column clicked.

Returns

Point?

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 int

X offset from the top left of the control.

clientY int

Y 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

Point?

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 Point

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

Point?