# OfficeHtmlDocumentShell

Shared document shell and theme CSS for OfficeIMO-generated HTML adapters.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

static

Shared document shell and theme CSS for OfficeIMO-generated HTML adapters.

## Inheritance

- object
- OfficeHtmlDocumentShell

Filter members 

Show inherited

## Methods

GetThemeCss 2 overloads

`public static string GetThemeCss(OfficeVisualThemeKind theme, string newLine = " ")` [#](#method-getthemecss-officeimo-drawing-officevisualthemekind-string)

[OfficeHtmlDocumentShell.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentShell.cs#L47)

Gets the shared CSS for an OfficeIMO HTML document theme.

Parameters

**theme OfficeIMO.Drawing.OfficeVisualThemeKind required**

**newLine string = " " optional**

Returns

`string`

`public static string GetThemeCss(OfficeTheme theme, string newLine = " ")` [#](#method-getthemecss-officeimo-officetheme-string)

[OfficeHtmlDocumentShell.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentShell.cs#L53)

Gets shared shell CSS from a document theme's colors and font choices.

Parameters

**theme OfficeIMO.OfficeTheme required**

**newLine string = " " optional**

Returns

`string`

`public static string MergeBodyClasses(params string?[] classLists)` [#](#method-mergebodyclasses-string)

[OfficeHtmlDocumentShell.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/OfficeHtmlDocumentShell.cs#L100)

Combines required adapter classes with caller-supplied classes, removing duplicate tokens while preserving first-seen order.

Parameters

**classLists string?[] required**

Returns

`string`

`public static string WrapBody(string bodyHtml, OfficeHtmlDocumentOptions? options = null)` [#](#method-wrapbody-string-officeimo-html-officehtmldocumentoptions)

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

Wraps a body fragment in a complete HTML document using the shared OfficeIMO shell.

Parameters

**bodyHtml string required**

**options OfficeIMO.Html.OfficeHtmlDocumentOptions? = null optional**

Returns

`string`

## 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?`

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