# OfficeRichTextBlockLayout

Describes a measured bounded rich text block.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeRichTextBlockLayout.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L10)

**Modifiers**

sealed

Describes a measured bounded rich text block.

## Inheritance

- object
- OfficeRichTextBlockLayout

## 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 2

- Method [OfficeTextLayoutEngine.LayoutRichTextBlock](/api/core/officeimo-drawing-officetextlayoutengine/#method-layoutrichtextblock-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-func-system-string-system-double-system-double-boolean-boolean-double-nullable-officeimo-drawing-officetextparagraphindent)
- Method [OfficeTextLayoutEngine.LayoutStackedRichTextBlock](/api/core/officeimo-drawing-officetextlayoutengine/#method-layoutstackedrichtextblock-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-func-system-string-system-double-system-double-boolean-double)

### Accepted by parameters 2

- Method [OfficeTextBlockRenderer.AppendSvgRichTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-appendsvgrichtextblock-text-stringbuilder-officeimo-drawing-officerichtextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-double-boolean) parameter `layout`
- Method [OfficeTextBlockRenderer.DrawRasterRichTextBlock](/api/core/officeimo-drawing-officetextblockrenderer/#method-drawrasterrichtextblock-officeimo-drawing-officerastercanvas-officeimo-drawing-officerichtextblocklayout-double-double-double-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextverticalalignment-double-double-double-boolean-boolean-boolean) parameter `layout`

Filter members 

Show inherited

## Constructors

`public OfficeRichTextBlockLayout(IReadOnlyList<OfficeRichTextLine> lines, double lineHeight, double width, double height, bool clipped = false)` [#](#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officerichtextline-double-double-double-boolean)

[OfficeRichTextBlockLayout.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L10)

Creates a measured rich text block.

Parameters

**lines System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeRichTextLine> required**

**lineHeight double required**

**width double required**

**height double required**

**clipped bool = false optional**

## 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<OfficeRichTextLine> Lines { get; }` [#](#property-lines)

[OfficeRichTextBlockLayout.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L21)

Gets the visible measured lines.

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

[OfficeRichTextBlockLayout.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L26)

Gets the shared line height used to place lines in the block.

`public double Width { get; }` [#](#property-width)

[OfficeRichTextBlockLayout.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L31)

Gets the measured block width.

`public double Height { get; }` [#](#property-height)

[OfficeRichTextBlockLayout.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L36)

Gets the measured block height.

`public bool Clipped { get; }` [#](#property-clipped)

[OfficeRichTextBlockLayout.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeRichTextBlockLayout.cs#L41)

Gets whether the block was ellipsized or clipped.

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