# HtmlParseOptions

Parser-local source and tree budgets. Conversion callers translate their shared budgets into this contract.

Class 

`OfficeIMO.Html.Dom`

**Namespace**

`OfficeIMO.Html.Dom`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[HtmlDomProviders.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L29)

**Modifiers**

sealed

Parser-local source and tree budgets. Conversion callers translate their shared budgets into this contract.

## Inheritance

- object
- HtmlParseOptions

## 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.

### Returned or exposed by 1

- Method [HtmlParseOptions.Clone](/api/html-core/officeimo-html-dom-htmlparseoptions/#method-clone)

### Accepted by parameters 2

- Method [IHtmlParserProvider.ParseDocument](/api/html-core/officeimo-html-dom-ihtmlparserprovider/#method-parsedocument-string-officeimo-html-dom-htmlparseoptions-threading-cancellationtoken) parameter `options`
- Method [IHtmlParserProvider.ParseFragment](/api/html-core/officeimo-html-dom-ihtmlparserprovider/#method-parsefragment-string-officeimo-html-dom-htmlelement-officeimo-html-dom-htmlparseoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public HtmlParseOptions()` [#](#constructor-ctor)

[HtmlDomProviders.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L29)

## Methods

`public HtmlParseOptions Clone()` [#](#method-clone)

[HtmlDomProviders.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L43)

Copies the settings so a provider can retain a stable request.

Returns

`HtmlParseOptions`

`public void Validate()` [#](#method-validate)

[HtmlDomProviders.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L37)

Checks that configured limits are positive.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int? MaxInputCharacters { get; set; }` [#](#property-maxinputcharacters)

[HtmlDomProviders.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L29)

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

`public int? MaxNodes { get; set; }` [#](#property-maxnodes)

[HtmlDomProviders.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L31)

Maximum tree nodes, excluding the document itself, or null for no node limit.

`public int? MaxDepth { get; set; }` [#](#property-maxdepth)

[HtmlDomProviders.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDomProviders.cs#L33)

Maximum element nesting depth, with the root element at depth one, or null for no depth limit.

<!-- PowerForge markdown artifact sha256:17B7AB6FB16DDEEB2261A22D1A42E8A2460B80635B1ACBFDCE9C4291D418E132 -->
