Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeHtmlDocumentShell

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
551365f138da with working tree changes
Modifiers
static

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

Inheritance

  • object
  • OfficeHtmlDocumentShell

Methods

GetThemeCss 2 overloads
public static string GetThemeCss(OfficeVisualThemeKind theme, string newLine = " ") #

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 = " ") #

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

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

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