# OfficeHtmlDocumentOptions

Options used by shared OfficeIMO HTML document shell helpers.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OfficeHtmlDocumentOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L8)

**Modifiers**

sealed

Options used by shared OfficeIMO HTML document shell helpers.

## Inheritance

- object
- OfficeHtmlDocumentOptions

## Usage

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

- Method [OfficeHtmlDocumentOptions.Clone](/api/html/officeimo-html-officehtmldocumentoptions/#method-clone)

### Accepted by parameters 1

- Method [OfficeHtmlDocumentShell.WrapBody](/api/html/officeimo-html-officehtmldocumentshell/#method-wrapbody-string-officeimo-html-officehtmldocumentoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OfficeHtmlDocumentOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L8)

## Methods

`public OfficeHtmlDocumentOptions Clone()` [#](#method-clone)

[OfficeHtmlDocumentOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L32)

Creates an independent copy suitable for one conversion.

Returns

`OfficeHtmlDocumentOptions`

`public void Validate()` [#](#method-validate)

[OfficeHtmlDocumentOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L45)

Validates the bounded document-output contract.

## 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 bool EmitDocumentShell { get; set; }` [#](#property-emitdocumentshell)

[OfficeHtmlDocumentOptions.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L8)

When true, emits a complete HTML document; otherwise emits only the supplied fragment.

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

[OfficeHtmlDocumentOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L11)

HTML document title.

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

[OfficeHtmlDocumentOptions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L14)

BCP 47 language tag assigned to the generated document element.

`public OfficeVisualThemeKind Theme { get; set; }` [#](#property-theme)

[OfficeHtmlDocumentOptions.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L17)

Theme applied when default shell styles are included.

`public OfficeTheme? DocumentTheme { get; set; }` [#](#property-documenttheme)

[OfficeHtmlDocumentOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L20)

Optional shared document theme. Its palette and typography take precedence over [OfficeHtmlDocumentOptions.Theme](/api/html/officeimo-html-officehtmldocumentoptions/).

`public bool IncludeDefaultStyles { get; set; }` [#](#property-includedefaultstyles)

[OfficeHtmlDocumentOptions.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L23)

When true, emits the shared OfficeIMO CSS shell.

`public string BodyClass { get; set; }` [#](#property-bodyclass)

[OfficeHtmlDocumentOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L26)

Optional CSS class assigned to the generated body.

`public string NewLine { get; set; }` [#](#property-newline)

[OfficeHtmlDocumentOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentOptions.cs#L29)

Line ending used by generated HTML.

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