# HtmlDocumentType

An owned document type declaration.

Class 

`OfficeIMO.Html.Dom`

**Namespace**

`OfficeIMO.Html.Dom`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[HtmlDocument.cs:185](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDocument.cs#L185)

**Base**

`HtmlNode`

**Modifiers**

sealed

An owned document type declaration.

## Inheritance

- [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)
- HtmlDocumentType

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

- Method [HtmlDocument.CreateDocumentType](/api/html-core/officeimo-html-dom-htmldocument/#method-createdocumenttype-string-string-string)

Filter members 

Show inherited

## Inherited Methods

`public HtmlNode AppendChild(HtmlNode child)` [#](#method-appendchild-htmlnode)

[HtmlNode.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L74)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

Parameters

**child HtmlNode required**

Returns

`HtmlNode`

`public IEnumerable<HtmlNode> Descendants()` [#](#method-descendants)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

Returns

`IEnumerable<HtmlNode>`

`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 HtmlElement? QuerySelector(string selector)` [#](#method-queryselector-string)

[HtmlNode.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L122)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

Parameters

**selector string required**

Returns

`HtmlElement?`

`public IReadOnlyList<HtmlElement> QuerySelectorAll(string selector)` [#](#method-queryselectorall-string)

[HtmlNode.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L125)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

Parameters

**selector string required**

Returns

`IReadOnlyList<HtmlElement>`

`public void Remove()` [#](#method-remove)

[HtmlNode.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L103)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

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

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[HtmlDocument.cs:185](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDocument.cs#L185)

Declared document type name.

`public string PublicIdentifier { get; }` [#](#property-publicidentifier)

[HtmlDocument.cs:187](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDocument.cs#L187)

Public identifier, or an empty string.

`public string SystemIdentifier { get; }` [#](#property-systemidentifier)

[HtmlDocument.cs:189](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDocument.cs#L189)

System identifier, or an empty string.

`public override string NodeName { get; }` [#](#property-nodename)

[HtmlDocument.cs:191](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlDocument.cs#L191)

Node name for non-element nodes; elements expose their local name.

## Inherited Properties

`public HtmlDocument Document { get; }` [#](#property-document)

[HtmlNode.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L22)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public int NodeId { get; }` [#](#property-nodeid)

[HtmlNode.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L24)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlNodeKind Kind { get; }` [#](#property-kind)

[HtmlNode.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L26)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlNode? Parent { get; }` [#](#property-parent)

[HtmlNode.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L28)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlElement? ParentElement { get; }` [#](#property-parentelement)

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

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public IReadOnlyList<HtmlNode> ChildNodes { get; }` [#](#property-childnodes)

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

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public IEnumerable<HtmlElement> Children { get; }` [#](#property-children)

[HtmlNode.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L35)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlNode? FirstChild { get; }` [#](#property-firstchild)

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

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlNode? NextSibling { get; }` [#](#property-nextsibling)

[HtmlNode.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L39)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public HtmlNode? PreviousSibling { get; }` [#](#property-previoussibling)

[HtmlNode.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L41)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public int? SourceIndex { get; internal set; }` [#](#property-sourceindex)

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

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public string TextContent { get; set; }` [#](#property-textcontent)

[HtmlNode.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L49)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public string OuterHtml { get; }` [#](#property-outerhtml)

[HtmlNode.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L68)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

`public string InnerHtml { get; }` [#](#property-innerhtml)

[HtmlNode.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.Core/HtmlNode.cs#L70)

Inherited from [HtmlNode](/api/html-core/officeimo-html-dom-htmlnode/)

<!-- PowerForge markdown artifact sha256:7C262A8C3E156DC516473EBDAE3530AB03506E386620BDE46418CF15535EC7BE -->
