Table of Contents

Method WrapTextToList

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

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

text string

Text to wrap.

maxWidth double

Max width of the text in device-independent units.

font Font

Text font.

canvas Graphics

Graphics context.

Returns

IEnumerable<string>