Table of Contents

Class LineLayoutEnumerator

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Walks a TextBlock one laid-out line at a time.

public sealed class LineLayoutEnumerator
Inheritance
LineLayoutEnumerator
Inherited Members

Remarks

Each produced line is positioned independently, without cumulative offsets from earlier or later lines.

Properties

Current

Gets the current line layout.

public LineLayout Current { get; }

Property Value

LineLayout

Methods

MoveNext(float)

Advances to the next line using the supplied wrapping length.

public bool MoveNext(float wrappingLength)

Parameters

wrappingLength float

The wrapping length in pixels. Use -1 to disable wrapping.

Returns

bool

true when a line was produced.

Remarks

The wrapping length applies only to the line being produced by this call.