Method GetMaxLengthForWidth
GetMaxLengthForWidth(ustring, int)
Gets the index position from the text based on the width
.
public static int GetMaxLengthForWidth(ustring text, int width)
Parameters
text
ustringThe text.
width
intThe 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
Returns
- int
The index of the list that fit the width.