Table of Contents

Method WrapTextToList

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

WrapTextToList(string, ref double, Font, Graphics)

Performs word wrapping of the multiple text lines which can contain new line characters.

public static List<string> WrapTextToList(string text, ref 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

List<string>