Table of Contents

Method ViewportToScreen

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ViewportToScreen(in Rectangle)

Converts a Viewport-relative location and size to a screen-relative location and size.

public Rectangle ViewportToScreen(in Rectangle viewport)

Parameters

viewport Rectangle

Viewport-relative location and size.

Returns

Rectangle

Screen-relative location and size.

Remarks

Viewport-relative means relative to the top-left corner of the inner rectangle of the Padding.

ViewportToScreen(in Point)

Converts a Viewport-relative location to a screen-relative location.

public Point ViewportToScreen(in Point viewportLocation)

Parameters

viewportLocation Point

Viewport-relative location.

Returns

Point

Screen-relative location.

Remarks

Viewport-relative means relative to the top-left corner of the inner rectangle of the Padding.