API Reference

Class

HtmlDomLimitTracker

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

Tracks shared HTML DOM traversal node and depth limits for converter packages.

Inheritance

  • Object
  • HtmlDomLimitTracker

Usage

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

Returned or exposed by

Constructors

public HtmlDomLimitTracker(Nullable<Int32> maxHtmlNodes, Nullable<Int32> maxHtmlDepth) #

Creates a DOM traversal limit tracker.

Parameters

maxHtmlNodes System.Nullable{System.Int32} requiredposition: 0
Maximum number of traversed DOM nodes, or null for no node limit.
maxHtmlDepth System.Nullable{System.Int32} requiredposition: 1
Maximum element nesting depth, or null for no depth limit.

Methods

public static HtmlDomLimitTracker Create(Nullable<Int32> maxHtmlNodes, Nullable<Int32> maxHtmlDepth) #
Returns: HtmlDomLimitTracker

Creates a tracker only when at least one DOM traversal limit is configured.

Parameters

maxHtmlNodes System.Nullable{System.Int32} requiredposition: 0
Maximum number of traversed DOM nodes, or null for no node limit.
maxHtmlDepth System.Nullable{System.Int32} requiredposition: 1
Maximum element nesting depth, or null for no depth limit.

Returns

A tracker when limits are configured; otherwise null.

public Void RecordElementStart(Int32 depth) #
Returns: Void

Records a traversed element start and validates its nesting depth.

Parameters

depth System.Int32 requiredposition: 0
One-based element nesting depth.
public Void RecordNode() #
Returns: Void

Records a traversed text or non-element node.