PeachDrawing.Text

PeachDrawing.Text.Layout.LineSpace

LineSpace(double, double, double, double) Constructor

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 LineSpace(double Left, double Right, double Indent=0.0, double Top=0.0);

Parameters

Left System.Double

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 System.Double

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.

Indent System.Double

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.

Top System.Double

The distance from the top of the layout to the top of the line, in layout units; it must be finite.