# OfficeRichTextParagraph

A paragraph whose styled runs and layout are resolved with the drawing's render-time fonts.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`87dcb6f3ed19` with working tree changes

**Source**

[OfficeRichTextParagraph.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L81)

**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.

### Returned or exposed by 3

- Property [OfficeDrawingRichText.Paragraphs](/api/core/officeimo-drawing-officedrawingrichtext/#property-paragraphs)
- Method [OfficeRichTextParagraph.WithAutomaticHyphenationSuppressed](/api/core/officeimo-drawing-officerichtextparagraph/#method-withautomatichyphenationsuppressed-boolean)
- Method [OfficeRichTextParagraph.WithTabStops](/api/core/officeimo-drawing-officerichtextparagraph/#method-withtabstops-officeimo-drawing-officetexttabstops)

### Accepted by parameters 1

- Method [OfficeDrawing.AddRichTextParagraphs](/api/core/officeimo-drawing-officedrawing/#method-addrichtextparagraphs-collections-generic-ireadonlylist-officeimo-drawing-officerichtextparagraph-double-double-double-double-officeimo-drawing-officetextverticalalignment-boolean-nullable-officeimo-drawing-officetextpadding) parameter `paragraphs`

Filter members 

Show inherited

## Constructors

OfficeRichTextParagraph 2 overloads

`public OfficeRichTextParagraph(IReadOnlyList<OfficeRichTextRun> runs, OfficeTextAlignment alignment = Left, double? lineHeight = null, OfficeTextPadding? margins = null, OfficeTextParagraphIndent? indent = null, double? lineHeightFactor = null)` [#](#member-91d303276d05281125c5967e)

[OfficeRichTextParagraph.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L81)

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)` [#](#member-c8ab1e847703108a0dda8511)

[OfficeRichTextParagraph.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L54)

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)` [#](#method-withautomatichyphenationsuppressed-boolean)

[OfficeRichTextParagraph.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L85)

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

Parameters

**suppressed bool required**

Returns

`OfficeRichTextParagraph`

`public OfficeRichTextParagraph WithTabStops(OfficeTextTabStops? tabStops)` [#](#method-withtabstops-officeimo-drawing-officetexttabstops)

[OfficeRichTextParagraph.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L93)

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

Parameters

**tabStops OfficeIMO.Drawing.OfficeTextTabStops? required**

Returns

`OfficeRichTextParagraph`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<OfficeRichTextRun> Runs { get; }` [#](#property-runs)

[OfficeRichTextParagraph.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L64)

Snapshot of styled inline content.

`public OfficeTextAlignment Alignment { get; }` [#](#property-alignment)

[OfficeRichTextParagraph.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L66)

Horizontal alignment within the paragraph's margins.

`public double? LineHeight { get; }` [#](#property-lineheight)

[OfficeRichTextParagraph.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L68)

Absolute line height, or null for the shared default.

`public double? LineHeightFactor { get; }` [#](#property-lineheightfactor)

[OfficeRichTextParagraph.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L70)

Multiplier of each line's text extent, or null for the shared default.

`public OfficeTextPadding Margins { get; }` [#](#property-margins)

[OfficeRichTextParagraph.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L72)

Paragraph insets; adjacent vertical margins are added.

`public OfficeTextParagraphIndent Indent { get; }` [#](#property-indent)

[OfficeRichTextParagraph.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L74)

First-line and continuation-line offsets.

`public OfficeTextParagraphLabel? Label { get; }` [#](#property-label)

[OfficeRichTextParagraph.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L76)

Optional list label, painted once on the first visual line.

`public OfficeTextTabStops? TabStops { get; private set; }` [#](#property-tabstops)

[OfficeRichTextParagraph.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L79)

Optional measured tab settings. Null retains the legacy space-expansion behavior.

`public bool? SuppressAutomaticHyphenation { get; internal set; }` [#](#property-suppressautomatichyphenation)

[OfficeRichTextParagraph.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Core/OfficeRichTextParagraph.cs#L81)

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.

<!-- PowerForge markdown artifact sha256:A12DDD44B303DF85C164CAC1D7EAEEC10E84E5D225A0C45BA995B6E382296BC0 -->
