Table of Contents

Method MaxLines

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

MaxLines(ustring, int)

Computes the number of lines needed to render the specified text given the width.

public static int MaxLines(ustring text, int width)

Parameters

text ustring

Text, may contain newlines.

width int

The minimum width for the text.

Returns

int

Number of lines.