PeachDrawing.Text
PeachDrawing.Text.Layout
FlowCursor Struct
Where the next line of a paragraph starts. A cursor is an immutable value: laying a line out never changes the cursor it is given, one saved earlier can be laid out
from again (a caller that undoes a line, or lays it out in another space, keeps the cursor from before it), and default is the start of the paragraph.
public readonly struct FlowCursor : System.IEquatable<PeachDrawing.Text.Layout.FlowCursor>
Implements System.IEquatable<FlowCursor>
| Properties | |
|---|---|
| IsEnd | Whether the last line of the paragraph has been laid out, so that there is no line after this cursor. |
| Offset | The UTF-16 offset in the text of the first character of the line that starts here. |
| Operators | |
|---|---|
| operator ==(FlowCursor, FlowCursor) | Whether two cursors are at the same place. |
| operator !=(FlowCursor, FlowCursor) | Whether two cursors are at different places. |