Table of Contents

Method WrapTextLineToList

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

WrapTextLineToList(string, ref double, Font, Graphics)

Performs word wrapping of the single text line which doesn't contain new line characters.

public static List<string> WrapTextLineToList(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>