Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlDomLimitTracker

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • HtmlDomLimitTracker

Usage

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

Returned or exposed by 1

Constructors

public HtmlDomLimitTracker(int? maxHtmlNodes, int? maxHtmlDepth) #

Creates a DOM traversal limit tracker.

Parameters

maxHtmlNodes int? required
Maximum number of traversed DOM nodes, or null for no node limit.
maxHtmlDepth int? required
Maximum element nesting depth, or null for no depth limit.

Methods

public static HtmlDomLimitTracker? Create(int? maxHtmlNodes, int? maxHtmlDepth) #

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

Parameters

maxHtmlNodes int? required
Maximum number of traversed DOM nodes, or null for no node limit.
maxHtmlDepth int? required
Maximum element nesting depth, or null for no depth limit.

Returns

HtmlDomLimitTracker? A tracker when limits are configured; otherwise null.
public void RecordElementStart(int depth) #

Records a traversed element start and validates its nesting depth.

Parameters

depth int required
One-based element nesting depth.
public void RecordNode() #

Records a traversed text or non-element node.