PeachDrawing.Text
PeachDrawing.Text.Layout
TextIndent Struct
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 readonly record struct TextIndent : System.IEquatable<PeachDrawing.Text.Layout.TextIndent>
Implements System.IEquatable<TextIndent>
| Constructors | |
|---|---|
| TextIndent(double, bool, bool) | 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. |
| Properties | |
|---|---|
| EachLine | Whether the lines that follow a forced break get the indent too, and not only the first line of the paragraph. |
| Hanging | 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). |
| Length | 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. |