Method GetMaxLengthForWidth | Terminal.Gui v1 (original) (raw)
Namespace
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
The index of the text that fit the width.
GetMaxLengthForWidth(List, 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
The index of the list that fit the width.