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