Method WrapTextLineToList
WrapTextLineToList(string, float, Font, Graphics, StringSplitOptions)
Performs word wrapping of the single text line which doesn't contain new line characters.
public static IEnumerable<string> WrapTextLineToList(string text, float maxWidth, Font font, Graphics canvas, StringSplitOptions splitOptions = StringSplitOptions.None)
Parameters
textstringText to wrap.
maxWidthfloatMax width of the text in device-independent units.
fontFontText font.
canvasGraphicsGraphics context.
splitOptionsStringSplitOptionsThe string split options.