Method WrapTextToMultipleLines
WrapTextToMultipleLines(string, ref double, Font, Graphics)
Performs word wrapping of the text.
public static string WrapTextToMultipleLines(string text, ref double maxWidth, Font font, Graphics canvas)
Parameters
text
stringText to wrap.
maxWidth
doubleWidth of the text in device-independent units.
font
FontText font.
canvas
GraphicsDrawing context.