Method WrapTextToList
WrapTextToList(string, double, Font, Graphics)
Performs word wrapping of the multiple text lines which can contain new line characters.
public static IEnumerable<string> WrapTextToList(string text, double maxWidth, Font font, Graphics canvas)
Parameters
textstringText to wrap.
maxWidthdoubleMax width of the text in device-independent units.
fontFontText font.
canvasGraphicsGraphics context.