AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

 IConstructableNode

public interface IConstructableNode
Represents a constructable node. Lowest common denominator for all DOM nodes.

Gets a live NodeList containing all the children of this node. Being live means that if the children of the node change, the NodeList object is automatically updated.

NodeFlags Flags { get; }

Gets the associated node flags.

Gets a string containing the name of the Node. The structure of the name will differ with the name type.

IConstructableNode Parent { get; set; }

Gets a node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.

Appends the given child node to the list of children.

void AppendText(StringOrMemory text, bool emitWhiteSpaceOnly = false)

Appends the given text to the list of children as a text node.

void InsertNode(int idx, IConstructableNode childNode)

Inserts the given child node at the given index.

void InsertText(int idx, StringOrMemory text, bool emitWhiteSpaceOnly = false)

Inserts the given text at the given index as a text node.

Tries to remove the given child node from the list of children.

Removes this node from its parent if any.

void RemoveNode(int idx, IConstructableNode childNode)

Removes the child node at the given index.