Table of Contents

Method WrapTextToMultipleLines

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

WrapTextToMultipleLines(string, ref double, Font, Graphics)

Performs word wrapping of the text.

public static string WrapTextToMultipleLines(string text, ref double maxWidth, Font font, Graphics canvas)

Parameters

text string

Text to wrap.

maxWidth double

Width of the text in device-independent units.

font Font

Text font.

canvas Graphics

Drawing context.

Returns

string