[]
Represents all formatting for a paragraph.
public class ParagraphFormat : FormattingBag
Gets or sets text alignment for the paragraph.
public ParagraphAlignment Alignment { get; set; }
Gets or sets the vertical alignment of all text on each line displayed within a paragraph. If the line height (before any added spacing) is larger than one or more characters on the line, all characters are aligned to each other as specified by this property.
public BaseLineAlignment BaseLineAlignment { get; set; }
Gets or sets whether this is a right-to-left paragraph.
public bool Bidi { get; set; }
Gets border collection of the paragraph.
public ParagraphBorderCollection Borders { get; }
Gets or sets whether the current paragraph should use the document grid lines per page settings defined in the document when laying out the contents in the paragraph. This setting determines whether the additional line pitch specified in the document grid shall be added to each line in this paragraph as specified by the document grid.
public bool DisableLineHeightGrid { get; set; }
Gets or sets whether East Asian typography and line-breaking rules shall be applied to text in this paragraph to determine which characters can begin and end each line. This property only applies to Simplified Chinese, Traditional Chinese, and Japanese text in this paragraph.
public bool FarEastLineBreakControl { get; set; }
Gets or sets whether to change punctuation symbols at the beginning of a line to half-width characters for the paragraphs
public bool HalfWidthPunctuationOnTopOfLine { get; set; }
Gets or sets whether the text in this paragraph shall be allowed to extend one character beyond the extents applied by any indents/margins when the character that extends past those extents is a punctuation character.
public bool HangingPunctuation { get; set; }
Gets or sets whether the current paragraph should be exempted from any hyphenation that is applied in the document settings.
public bool Hyphenation { get; set; }
Gets the set of indentation properties applied to the current paragraph.
public Indentation Indentation { get; }
True if all lines in the paragraph are to remain on the same page.
public bool KeepTogether { get; set; }
True if the paragraph is to remains on the same page as the paragraph that follows it.
public bool KeepWithNext { get; set; }
Gets or sets whether the current paragraph's lines should be exempted from line numbering that is applied in the parent section.
public bool NoLineNumber { get; set; }
Specifies the outline level of the paragraph in the document.
public OutlineLevel OutlineLevel { get; set; }
True if a page break is forced before the paragraph.
public bool PageBreakBefore { get; set; }
Returns a Shading object that refers to the shading formatting for the paragraph.
public Shading Shading { get; }
Gets the set of spacing properties applied to the current paragraph.
public Spacing Spacing { get; }
Gets the collection of custom tab stops defined for this object.
public TabStopCollection TabStops { get; }
Gets or sets whether, for paragraphs in a text box, the surrounding text shall be allowed to overlap with the empty text box boundaries and tight wrap to the extents of the text within the text box.
public TextboxTightWrap TextboxTightWrap { get; set; }
This property has only effect for paragraphs that are contained within a text box, ignored otherwise.
Gets or sets the reading order of the specified paragraphs without changing their alignment.
public TextFlowDirection TextFlowDirection { get; set; }
True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.
public bool WidowControl { get; set; }
Gets or sets whether to wrap Latin text in the middle of a word in the paragraph.
public bool WordWrap { get; set; }
Resets to default paragraph formatting.
public override void ClearFormatting()
Default paragraph formatting is Normal style, left aligned, no indentation, no spacing, no borders and no shading.