Method GetSumMaxCharWidth | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
GetSumMaxCharWidth(string, int, int, int)
Gets the maximum number of columns from the text based on the startIndex
and thelength
.
public static int GetSumMaxCharWidth(string text, int startIndex = -1, int length = -1, int tabWidth = 0)
Parameters
text
string
The text.
startIndex
int
The start index.
length
int
The length.
tabWidth
int
The number of columns used for a tab.
Returns
The maximum characters width.
Remarks
This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding glyphs (e.g. Arabic).