PeachDrawing.Text
PeachDrawing.Text.Layout
LineSpace Struct
The room a line of a paragraph has, as its caller worked it out: where the space starts and ends across the layout, how far the text is indented into it, and where the line’s top is.
public readonly record struct LineSpace : System.IEquatable<PeachDrawing.Text.Layout.LineSpace>
Implements System.IEquatable<LineSpace>
| Constructors | |
|---|---|
| LineSpace(double, double, double, double) | The room a line of a paragraph has, as its caller worked it out: where the space starts and ends across the layout, how far the text is indented into it, and where the line’s top is. |
| Properties | |
|---|---|
| Indent | How far the text is moved in from the start edge of the space (GetIndent(FlowCursor) gives the TextIndent of the line); it must be finite. |
| Left | The left edge of the space, in layout units. It is where a left-to-right line starts (after the indent); a right-to-left line is laid out from here to Right, less the indent, and right-aligned in that. It must be finite, and so must its sum with the indent. |
| Right | The right edge of the space, or System.Double.PositiveInfinity for a line that breaks only where it is forced to. A space that ends before it starts has no width. |
| Top | The distance from the top of the layout to the top of the line, in layout units; it must be finite. |