Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlDomLimitTracker

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Source revision a039964de4cc 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(Int32? maxHtmlNodes, Int32? maxHtmlDepth) #

Creates a DOM traversal limit tracker.

Parameters

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

Methods

public static HtmlDomLimitTracker? Create(Int32? maxHtmlNodes, Int32? maxHtmlDepth) #
Returns: HtmlDomLimitTracker?

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

Parameters

maxHtmlNodes System.Int32? requiredposition: 0
Maximum number of traversed DOM nodes, or null for no node limit.
maxHtmlDepth 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.