Table of Contents

Method GetMaxLengthForWidth

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetMaxLengthForWidth(ustring, int)

Gets the index position from the text based on the width.

public static int GetMaxLengthForWidth(ustring text, int width)

Parameters

text ustring

The text.

width int

The width.

Returns

int

The index of the text that fit the width.

GetMaxLengthForWidth(List<Rune>, int)

Gets the index position from the list based on the width.

public static int GetMaxLengthForWidth(List<Rune> runes, int width)

Parameters

runes List<Rune>

The runes.

width int

The width.

Returns

int

The index of the list that fit the width.