Class
OfficeHtmlDocumentShell
OfficeIMO.Html
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
- newLine string = " "
Returns
stringpublic static string GetThemeCss(OfficeTheme theme, string newLine = " ") #Gets shared shell CSS from a document theme's colors and font choices.
Parameters
- theme OfficeIMO.OfficeTheme
- newLine string = " "
Returns
stringpublic 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?[]
Returns
stringpublic 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
- options OfficeIMO.Html.OfficeHtmlDocumentOptions? = null
Returns
string