# HtmlNodeKind

Structural node categories retained independently of a parser implementation.

Enum 

`OfficeIMO.Html.Dom`

**Namespace**

`OfficeIMO.Html.Dom`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[HtmlNodeKind.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Structural node categories retained independently of a parser implementation.

## Inheritance

- Enum
- HtmlNodeKind

## Usage

Explore 11 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 11

- Property [HtmlDocument.Kind](/api/html-core/officeimo-html-dom-htmldocument/#property-kind)
- Property [HtmlDocumentFragment.Kind](/api/html-core/officeimo-html-dom-htmldocumentfragment/#property-kind)
- Property [HtmlDocumentType.Kind](/api/html-core/officeimo-html-dom-htmldocumenttype/#property-kind)
- Property [HtmlElement.Kind](/api/html-core/officeimo-html-dom-htmlelement/#property-kind)
- Property [HtmlNode.Kind](/api/html-core/officeimo-html-dom-htmlnode/#property-kind)
- Field [HtmlNodeKind.Comment](/api/html-core/officeimo-html-dom-htmlnodekind/#field-comment)
- Field [HtmlNodeKind.Document](/api/html-core/officeimo-html-dom-htmlnodekind/#field-document)
- Field [HtmlNodeKind.DocumentFragment](/api/html-core/officeimo-html-dom-htmlnodekind/#field-documentfragment)
- Field [HtmlNodeKind.DocumentType](/api/html-core/officeimo-html-dom-htmlnodekind/#field-documenttype)
- Field [HtmlNodeKind.Element](/api/html-core/officeimo-html-dom-htmlnodekind/#field-element)
- Field [HtmlNodeKind.Text](/api/html-core/officeimo-html-dom-htmlnodekind/#field-text)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const HtmlNodeKind Document` [#](#field-document)

[HtmlNodeKind.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L6)

An HTML document.

Value: `0`

`public const HtmlNodeKind Element` [#](#field-element)

[HtmlNodeKind.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L8)

An element in the HTML, SVG, MathML or another namespace.

Value: `1`

`public const HtmlNodeKind Text` [#](#field-text)

[HtmlNodeKind.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L10)

Decoded character data.

Value: `2`

`public const HtmlNodeKind Comment` [#](#field-comment)

[HtmlNodeKind.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L12)

A source comment.

Value: `3`

`public const HtmlNodeKind DocumentType` [#](#field-documenttype)

[HtmlNodeKind.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L14)

A document type declaration.

Value: `4`

`public const HtmlNodeKind DocumentFragment` [#](#field-documentfragment)

[HtmlNodeKind.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNodeKind.cs#L16)

A detached group of nodes, including template contents.

Value: `5`

<!-- PowerForge markdown artifact sha256:0A1D571854B210C2C26ACB6AE3D2F7815D73F11939B5E174F0FB2B116BA32AAE -->
