Method WrapTextToMultipleLines
WrapTextToMultipleLines(string, double, Font, Graphics)
Performs word wrapping of the text.
public static string WrapTextToMultipleLines(string text, 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.