Method WrapTextToList
WrapTextToList(string, ref double, Font, Graphics)
Performs word wrapping of the multiple text lines which can contain new line characters.
public static List<string> WrapTextToList(string text, ref double maxWidth, Font font, Graphics canvas)
Parameters
text
stringText to wrap.
maxWidth
doubleMax width of the text in device-independent units.
font
FontText font.
canvas
GraphicsGraphics context.