PeachDrawing.Text

PeachDrawing.Text.Layout.TextIndent

TextIndent(double, bool, bool) Constructor

How far the start of a line is moved in from the edge of the paragraph (CSS text-indent), and which lines it moves. The distance is a length in layout units, so a caller that has a percentage works it out against its own width.

public TextIndent(double Length, bool Hanging=false, bool EachLine=false);

Parameters

Length System.Double

The distance from the start edge (the left for a left-to-right paragraph, the right for a right-to-left one); it may be negative, which moves the text out of the paragraph. It must be finite.

Hanging System.Boolean

Whether the lines it applies to are swapped for the ones it does not apply to: the indent is on every line except the first (and, with EachLine, except the lines that follow a forced break).

EachLine System.Boolean

Whether the lines that follow a forced break get the indent too, and not only the first line of the paragraph.