# HtmlLogicalDocument

Shared logical representation of parsed HTML before adapter-specific conversion.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlLogicalDocument.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Model/HtmlLogicalDocument.cs#L28)

**Modifiers**

sealed

Shared logical representation of parsed HTML before adapter-specific conversion.

## Inheritance

- object
- HtmlLogicalDocument

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

- Property [HtmlConversionDocument.LogicalDocument](/api/html/officeimo-html-htmlconversiondocument/#property-logicaldocument)

### Accepted by parameters 2

- Method [HtmlRoundTripScorer.Compare](/api/html/officeimo-html-htmlroundtripscorer/#method-compare-officeimo-html-htmllogicaldocument-officeimo-html-htmllogicaldocument) parameter `source`
- Method [HtmlRoundTripScorer.Compare](/api/html/officeimo-html-htmlroundtripscorer/#method-compare-officeimo-html-htmllogicaldocument-officeimo-html-htmllogicaldocument) parameter `target`

Filter members 

Show inherited

## Methods

`public int Count(HtmlLogicalNodeKind kind)` [#](#method-count-officeimo-html-htmllogicalnodekind)

[HtmlLogicalDocument.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Model/HtmlLogicalDocument.cs#L28)

Returns the number of nodes for a normalized kind.

Parameters

**kind OfficeIMO.Html.HtmlLogicalNodeKind required**

Returns

`int`

`public IReadOnlyDictionary<HtmlLogicalNodeKind, int> GetCounts()` [#](#method-getcounts)

[HtmlLogicalDocument.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Model/HtmlLogicalDocument.cs#L33)

Returns a snapshot of node counts by kind.

Returns

`IReadOnlyDictionary<HtmlLogicalNodeKind, int>`

## 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 HtmlLogicalNode Root { get; }` [#](#property-root)

[HtmlLogicalDocument.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Model/HtmlLogicalDocument.cs#L21)

Root logical node.

`public IReadOnlyList<string> Capabilities { get; }` [#](#property-capabilities)

[HtmlLogicalDocument.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Model/HtmlLogicalDocument.cs#L24)

Capability tags inferred from the logical document.

<!-- PowerForge markdown artifact sha256:2D5F4C097A2018A3513B3458CA6FB68C838EA523B267CFBBB1A5BA9EBAC468CD -->
