Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeRichTextParagraph

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
5d17dd5a4962 with working tree changes
Modifiers
sealed

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.

Accepted by parameters 1

Constructors

OfficeRichTextParagraph 2 overloads
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> required
Styled inline content. The collection and runs are copied.
alignment OfficeIMO.Drawing.OfficeTextAlignment = Left optional
Horizontal alignment within the paragraph's margins.
lineHeight double? = null optional
Optional absolute line height; null uses the shared default.
margins OfficeIMO.Drawing.OfficeTextPadding? = null optional
Nonnegative paragraph insets. Adjacent vertical margins are added.
indent OfficeIMO.Drawing.OfficeTextParagraphIndent? = null optional
Offsets of the first and subsequent visual lines.
lineHeightFactor double? = null optional
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> required
label OfficeIMO.Drawing.OfficeTextParagraphLabel required
alignment OfficeIMO.Drawing.OfficeTextAlignment = Left optional
lineHeight double? = null optional
margins OfficeIMO.Drawing.OfficeTextPadding? = null optional
indent OfficeIMO.Drawing.OfficeTextParagraphIndent? = null optional
lineHeightFactor double? = null optional

Methods

public OfficeRichTextParagraph WithAutomaticHyphenationSuppressed(bool suppressed) #

Returns an independent paragraph with automatic word hyphenation suppressed or allowed.

Parameters

suppressed bool required
public OfficeRichTextParagraph WithTabStops(OfficeTextTabStops? tabStops) #

Returns an independent paragraph with these tab settings; null restores legacy tab expansion.

Parameters

tabStops OfficeIMO.Drawing.OfficeTextTabStops? required

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.