Table of Contents

Method ViewportToGraphSpace

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

ViewportToGraphSpace(int, int)

Returns the section of the graph that is represented by the given viewport-relative position.

public RectangleF ViewportToGraphSpace(int col, int row)

Parameters

col int

Column in viewport-relative coordinates.

row int

Row in viewport-relative coordinates.

Returns

RectangleF

The rectangle in graph space that corresponds to the viewport cell at the given position.

ViewportToGraphSpace(Rectangle)

Returns the section of the graph that is represented by the viewport-relative area.

public RectangleF ViewportToGraphSpace(Rectangle viewportArea)

Parameters

viewportArea Rectangle

Rectangle in viewport-relative coordinates.

Returns

RectangleF

The rectangle in graph space that corresponds to the viewport area.