Table of Contents

Method MaxWidth

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MaxWidth(ustring, int)

Computes the maximum width needed to render the text (single line or multiple lines) given a minimum width.

public static int MaxWidth(ustring text, int width)

Parameters

text ustring

Text, may contain newlines.

width int

The minimum width for the text.

Returns

int

Max width of lines.