Method WrapTextLineToList
WrapTextLineToList(string, double, Font, Graphics)
Performs word wrapping of the single text line which doesn't contain new line characters.
public static IEnumerable<string> WrapTextLineToList(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.