# RtfHtmlEncapsulation

Outlook/Exchange HTML encapsulated in an RTF transport.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfHtmlEncapsulation.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHtmlEncapsulation.cs#L6)

**Modifiers**

sealed

Outlook/Exchange HTML encapsulated in an RTF transport.

## Inheritance

- object
- RtfHtmlEncapsulation

## Usage

Explore 1 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 1

- Property [RtfDocument.HtmlEncapsulation](/api/rtf/officeimo-rtf-rtfdocument/#property-htmlencapsulation)

Filter members 

Show inherited

## Constructors

`public RtfHtmlEncapsulation(int version, string html)` [#](#constructor-ctor-int32-string)

[RtfHtmlEncapsulation.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHtmlEncapsulation.cs#L6)

Creates an Outlook/Exchange HTML encapsulation payload.

Parameters

**version int required**

**html string required**

## 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 int Version { get; }` [#](#property-version)

[RtfHtmlEncapsulation.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHtmlEncapsulation.cs#L12)

Value declared by the RTF \fromhtml control.

`public string Html { get; }` [#](#property-html)

[RtfHtmlEncapsulation.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHtmlEncapsulation.cs#L15)

HTML reconstructed from htmltag and mhtmltag destinations.

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