Table of Contents

Method WrapTextLineToList

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

WrapTextLineToList(string, double, Font, Graphics)

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

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