Method MaxWidth
MaxWidth(ustring, int)
Computes the maximum width needed to render the text (single line or multiple lines) given a minimum width.
public static int MaxWidth(ustring text, int width)
Parameters
text
ustringText, may contain newlines.
width
intThe minimum width for the text.
Returns
- int
Max width of lines.