OfficeRichTextParagraph
OfficeIMO.Drawing
A paragraph whose styled runs and layout are resolved with the drawing's render-time fonts.
Inheritance
- object
- OfficeRichTextParagraph
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
Accepted by parameters 1
Constructors
public OfficeRichTextParagraph(IReadOnlyList<OfficeRichTextRun> runs, OfficeTextAlignment alignment = Left, double? lineHeight = null, OfficeTextPadding? margins = null, OfficeTextParagraphIndent? indent = null, 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 double? = null
- Optional absolute line height; null uses the shared default.
- margins OfficeIMO.Drawing.OfficeTextPadding? = null
- Nonnegative paragraph insets. Adjacent vertical margins are added.
- indent OfficeIMO.Drawing.OfficeTextParagraphIndent? = null
- Offsets of the first and subsequent visual lines.
- lineHeightFactor 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, double? lineHeight = null, OfficeTextPadding? margins = null, OfficeTextParagraphIndent? indent = null, 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 double? = null
- margins OfficeIMO.Drawing.OfficeTextPadding? = null
- indent OfficeIMO.Drawing.OfficeTextParagraphIndent? = null
- lineHeightFactor double? = null
Methods
public OfficeRichTextParagraph WithAutomaticHyphenationSuppressed(bool suppressed) #Returns an independent paragraph with automatic word hyphenation suppressed or allowed.
Parameters
- suppressed bool
Returns
OfficeRichTextParagraphpublic OfficeRichTextParagraph WithTabStops(OfficeTextTabStops? tabStops) #Returns an independent paragraph with these tab settings; null restores legacy tab expansion.
Parameters
- tabStops OfficeIMO.Drawing.OfficeTextTabStops?
Returns
OfficeRichTextParagraphInherited Methods
Properties
public IReadOnlyList<OfficeRichTextRun> Runs { get; } #Snapshot of styled inline content.
public OfficeTextAlignment Alignment { get; } #Horizontal alignment within the paragraph's margins.
public double? LineHeight { get; } #Absolute line height, or null for the shared default.
public 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.
public bool? SuppressAutomaticHyphenation { get; internal set; } #Whether an adapter's automatic word hyphenation is suppressed for this paragraph. False is the default; null means a native adapter encountered an unassessed setting. Ordinary drawing does not enable automatic hyphenation implicitly.