PeachDrawing.Text
PeachDrawing.Text.Layout.LineFlow
LineFlow.TryNext(FlowCursor, LineSpace, LineBox, FlowCursor) Method
Lays out the line that starts at cursor in space, and finds where the line after it starts.
public bool TryNext(in PeachDrawing.Text.Layout.FlowCursor cursor, in PeachDrawing.Text.Layout.LineSpace space, out PeachDrawing.Text.Layout.LineBox? line, out PeachDrawing.Text.Layout.FlowCursor next);
Parameters
cursor FlowCursor
Where the line starts: Start, or the cursor an earlier call gave back.
space LineSpace
The room the line has.
line LineBox
The line, placed in layout coordinates with its top at Top; null when there is no line.
next FlowCursor
Where the next line starts; the cursor itself when there is no line.
Returns
System.Boolean
false when the last line has already been laid out (IsEnd), and true with the line otherwise.
Exceptions
System.ArgumentException
The cursor is beyond the end of the text, or a number in space that must be finite is not, or an edge is not a number.