Class LineLayoutEnumerator
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
Methods
MoveNext(float)
Advances to the next line using the supplied wrapping length.
public bool MoveNext(float wrappingLength)
Parameters
wrappingLengthfloatThe wrapping length in pixels. Use
-1to disable wrapping.
Returns
Remarks
The wrapping length applies only to the line being produced by this call.