Class ParagraphStyle
- Namespace
- SoftZenPdf.Layout
- Assembly
- SoftZenPdf.dll
Layout of a paragraph: alignment, indents, spacing and page-break control. Records compare by value; create variants with with.
public sealed record ParagraphStyle : IEquatable<ParagraphStyle>
- Inheritance
-
ParagraphStyle
- Implements
- Inherited Members
Properties
- Background
A colour behind the paragraph's lines (between its indents), or null.
- Default
The default paragraph style: left aligned, no indents or spacing, single spacing.
- DefaultTabStop
The distance between default tab stops, in points. Defaults to 36 (half an inch).
- FirstLineIndent
Extra indent of the first line at the start side, in points; negative for a hanging indent.
- KeepTogether
Keep all lines of the paragraph on one page.
- KeepWithNext
Keep the paragraph on the same page as the start of the next block (for headings).
- LeftIndent
Indent from the left edge, in points (for right-to-left paragraphs too).
- LineSpacing
Line height. Defaults to single spacing.
- PageBreakBefore
Start the paragraph on a new page.
- RightIndent
Indent from the right edge, in points.
- SpaceAfter
Space below the paragraph, in points.
- SpaceBefore
Space above the paragraph, in points; not added at the top of a page.
- TabStops
Tab stop positions from the left indent, in points. Tabs past the last stop go to the next multiple of DefaultTabStop.
- WidowControl
Avoid leaving a single line of the paragraph alone at the bottom or top of a page. Defaults to true.