Table of Contents

Method WrapTextLineToList

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

text string

Text to wrap.

maxWidth float

Max width of the text in device-independent units.

font Font

Text font.

canvas Graphics

Graphics context.

splitOptions StringSplitOptions

The string split options.

Returns

IEnumerable<string>