Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

HtmlRenderUserAgentStyleMode

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
3b680b1b6fb1 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Selects the bounded user-agent defaults applied before authored CSS.

Inheritance

  • Enum
  • HtmlRenderUserAgentStyleMode

Usage

Explore 3 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.

Values

public const HtmlRenderUserAgentStyleMode Document #

Preserves OfficeIMO's document-oriented defaults, including Arial fallback and, outside direct HTML-to-PDF rendering, an uninset body. new HtmlPdfExportOptions() from OfficeIMO.Html.Pdf keeps the browser's eight CSS-pixel body margin so PDF output wraps as it does in a browser; author CSS such as body{margin:0} overrides it.

Value: 0
public const HtmlRenderUserAgentStyleMode Browser #

Applies selected browser defaults, including an eight CSS-pixel body margin. This does not claim complete browser user-agent stylesheet compatibility.

Value: 1