API Reference

Class

HtmlConversionLimits

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Shared safety and complexity limits applied before HTML is analyzed by target adapters.

Inheritance

  • Object
  • HtmlConversionLimits

Remarks

This is the single owner for source, DOM, stylesheet, selector, responsive-resource, and semantic-metadata budgets. Target adapters may add native-format limits, but should not independently reinterpret these shared HTML boundaries.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public HtmlConversionLimits() #

Methods

public HtmlConversionLimits Clone() #
Returns: HtmlConversionLimits

Creates an independent limits snapshot.

public static HtmlConversionLimits CreateTrustedProfile() #
Returns: HtmlConversionLimits

Creates compatibility-oriented limits for caller-trusted HTML.

public static HtmlConversionLimits CreateUntrustedProfile() #
Returns: HtmlConversionLimits

Creates conservative limits suitable for untrusted HTML ingestion.

Properties

public Nullable<Int32> MaxInputCharacters { get; set; } #

Maximum UTF-16 source characters, or null for no source-length limit.

public Nullable<Int32> MaxHtmlNodes { get; set; } #

Maximum DOM nodes, or null for no node limit.

public Nullable<Int32> MaxHtmlDepth { get; set; } #

Maximum DOM nesting depth, or null for no depth limit.

public Nullable<Int64> MaxCssBytes { get; set; } #

Maximum UTF-8 bytes in one embedded stylesheet, or null for no per-sheet limit.

public Nullable<Int64> MaxTotalCssBytes { get; set; } #

Maximum UTF-8 bytes across embedded stylesheets, or null for no total limit.

public Nullable<Int32> MaxCssRules { get; set; } #

Maximum active CSS rules, or null for no rule-count limit.

public Nullable<Int32> MaxCssDeclarations { get; set; } #

Maximum declarations across active CSS rules, or null for no declaration limit.

public Nullable<Int64> MaxSelectorEvaluations { get; set; } #

Maximum element/selector match attempts, or null for no evaluation limit.

public Nullable<Int32> MaxResponsiveImageCandidates { get; set; } #

Maximum responsive image candidates per source set, or null for no candidate limit.

public Nullable<Int32> MaxSemanticMetadataCharacters { get; set; } #

Maximum characters accepted from one semantic metadata field.