API Reference
OfficeRichTextParagraph
A paragraph whose styled runs and layout are resolved with the drawing's render-time fonts.
Inheritance
- Object
- OfficeRichTextParagraph
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
Constructors
public OfficeRichTextParagraph(IReadOnlyList<OfficeRichTextRun> runs, OfficeTextAlignment alignment = Left, Nullable<Double> lineHeight = null, Nullable<OfficeTextPadding> margins = null, Nullable<OfficeTextParagraphIndent> indent = null, Nullable<Double> lineHeightFactor = null) #Creates a paragraph with independent alignment, line spacing, margins and indentation.
Parameters
- runs System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeRichTextRun}
- Styled inline content. The collection and runs are copied.
- alignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- Horizontal alignment within the paragraph's margins.
- lineHeight System.Nullable{System.Double} = null
- Optional absolute line height; null uses the shared default.
- margins System.Nullable{OfficeIMO.Drawing.OfficeTextPadding} = null
- Nonnegative paragraph insets. Adjacent vertical margins are added.
- indent System.Nullable{OfficeIMO.Drawing.OfficeTextParagraphIndent} = null
- Offsets of the first and subsequent visual lines.
- lineHeightFactor System.Nullable{System.Double} = null
- Optional multiplier of each line's text extent; mutually exclusive with absolute line height.
public OfficeRichTextParagraph(IReadOnlyList<OfficeRichTextRun> runs, OfficeTextParagraphLabel label, OfficeTextAlignment alignment = Left, Nullable<Double> lineHeight = null, Nullable<OfficeTextPadding> margins = null, Nullable<OfficeTextParagraphIndent> indent = null, Nullable<Double> lineHeightFactor = null) #Creates a paragraph with a separately styled label and independent continuation indentation.
Parameters
- runs System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeRichTextRun}
- label OfficeIMO.Drawing.OfficeTextParagraphLabel
- alignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- lineHeight System.Nullable{System.Double} = null
- margins System.Nullable{OfficeIMO.Drawing.OfficeTextPadding} = null
- indent System.Nullable{OfficeIMO.Drawing.OfficeTextParagraphIndent} = null
- lineHeightFactor System.Nullable{System.Double} = null
Methods
public OfficeRichTextParagraph WithTabStops(OfficeTextTabStops tabStops) #OfficeRichTextParagraphReturns an independent paragraph with these tab settings; null restores legacy tab expansion.
Parameters
- tabStops OfficeIMO.Drawing.OfficeTextTabStops
Inherited Methods
Properties
public IReadOnlyList<OfficeRichTextRun> Runs { get; } #Snapshot of styled inline content.
public OfficeTextAlignment Alignment { get; } #Horizontal alignment within the paragraph's margins.
public Nullable<Double> LineHeight { get; } #Absolute line height, or null for the shared default.
public Nullable<Double> LineHeightFactor { get; } #Multiplier of each line's text extent, or null for the shared default.
public OfficeTextPadding Margins { get; } #Paragraph insets; adjacent vertical margins are added.
public OfficeTextParagraphIndent Indent { get; } #First-line and continuation-line offsets.
public OfficeTextParagraphLabel Label { get; } #Optional list label, painted once on the first visual line.
public OfficeTextTabStops TabStops { get; private set; } #Optional measured tab settings. Null retains the legacy space-expansion behavior.