# EmailBody

Contains the available body alternatives for an email or Outlook item.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailContent.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L5)

**Modifiers**

sealed

Contains the available body alternatives for an email or Outlook item.

## Inheritance

- object
- EmailBody

## 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 [EmailDocument.Body](/api/email/officeimo-email-emaildocument/#property-body)

Filter members 

Show inherited

## Constructors

`public EmailBody()` [#](#constructor-ctor)

[EmailContent.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L5)

## 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 string? Text { get; set; }` [#](#property-text)

[EmailContent.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L8)

Plain-text alternative.

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

[EmailContent.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L11)

HTML alternative.

`public string? Rtf { get; set; }` [#](#property-rtf)

[EmailContent.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L14)

Decompressed, byte-preserving RTF source when present.

`public string? TextCharset { get; set; }` [#](#property-textcharset)

[EmailContent.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L17)

Declared charset for the selected plain-text body.

`public string? HtmlCharset { get; set; }` [#](#property-htmlcharset)

[EmailContent.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L20)

Declared charset for the selected HTML body.

`public string? HtmlContentId { get; set; }` [#](#property-htmlcontentid)

[EmailContent.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L23)

Content-ID attached to the selected HTML MIME body part, without angle brackets.

`public string? HtmlContentLocation { get; set; }` [#](#property-htmlcontentlocation)

[EmailContent.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L26)

Content location attached to the selected HTML MIME body part.

`public bool IsHtmlRelatedRoot { get; set; }` [#](#property-ishtmlrelatedroot)

[EmailContent.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Model/EmailContent.cs#L32)

True when the selected HTML part is the root of a MIME multipart/related entity. Writers preserve the related container even when it currently has no resource parts.

<!-- PowerForge markdown artifact sha256:9EFD205A087B979D92FE9D5B558718A56F41F0C005F459079087F5EF4722BF55 -->
