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
textstringText to wrap.
maxWidthdoubleWidth of the text in device-independent units.
fontFontText font.
canvasGraphicsDrawing context.