Table of Contents

Method CalcRect

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CalcRect(int, int, ustring, TextDirection)

Calculates the rectangle required to hold text, assuming no word wrapping.

public static Rect CalcRect(int x, int y, ustring text, TextDirection direction = TextDirection.LeftRight_TopBottom)

Parameters

x int

The x location of the rectangle

y int

The y location of the rectangle

text ustring

The text to measure

direction TextDirection

The text direction.

Returns

Rect