DocumentType Class
https://dom.spec.whatwg.org/#interface-documenttype
public sealed class DocumentType : Node, IChildNode- Inheritance
NodeDocumentType- Implements
Properties
| Name | Description |
|---|---|
| Name | Gets the name of the document type. |
| NodeName | Gets the node name of a document type, which is its name. |
| NodeType | Gets the node type of a document type, which is 10 (DOCUMENT_TYPE_NODE). |
| PublicId | Gets the public identifier of the document type. |
| SystemId | Gets the system identifier of the document type. |
Name
DocumentType.csGets the name of the document type.
public string Name { get; }NodeName
DocumentType.csNodeType
DocumentType.csPublicId
DocumentType.csGets the public identifier of the document type.
public string PublicId { get; }SystemId
DocumentType.csGets the system identifier of the document type.
public string SystemId { get; }Methods
| Name | Description |
|---|---|
| After(ReadOnlySpan<NodeOrString>) | Inserts the nodes just after this node, converting the strings into text nodes. |
| Before(ReadOnlySpan<NodeOrString>) | Inserts the nodes just before this node, converting the strings into text nodes. |
| Remove() | Removes this node from its parent, if any. |
| ReplaceWith(ReadOnlySpan<NodeOrString>) | Replaces this node with the given nodes in its parent, converting the strings into text nodes. |
After(ReadOnlySpan<NodeOrString>)
Mixins.Members.csInserts the nodes just after this node, converting the strings into text nodes.
public void After(params scoped ReadOnlySpan<NodeOrString> nodes)Before(ReadOnlySpan<NodeOrString>)
Mixins.Members.csInserts the nodes just before this node, converting the strings into text nodes.
public void Before(params scoped ReadOnlySpan<NodeOrString> nodes)Remove()
Mixins.Members.csRemoves this node from its parent, if any.
public void Remove()ReplaceWith(ReadOnlySpan<NodeOrString>)
Mixins.Members.csReplaces this node with the given nodes in its parent, converting the strings into text nodes.
public void ReplaceWith(params scoped ReadOnlySpan<NodeOrString> nodes)