Class CompositeNodeT
CompositeNode<T> class
The base generic class for nodes that can contain other nodes.
public abstract class CompositeNode<T> : CompositeNodeBase, ICompositeNode<T>
where T : INode
| Parameter | Description |
|---|
| T | The type of elements in the composite node. |
Properties
| Name | Description |
|---|
| Document { get; } | Gets the document of the node. |
| FirstChild { get; } | Gets the first child node of this node. |
| IsComposite { get; } | Checks whether the node is composite. If true then the node can have child nodes. |
| LastChild { get; } | Gets the last child node of this node. |
| NextSibling { get; } | Gets the next node at the same node tree level. |
| NodeType { get; } | Gets the node type. |
| ParentNode { get; } | Gets the parent node. |
| PreviousSibling { get; } | Gets the previous node at the same node tree level. |
Methods
| Name | Description |
|---|
| override Accept(DocumentVisitor) | Accepts the visitor of the node. |
| virtual AppendChildFirst<T1>(T1) | Adds the node to the front of the list of child nodes for this node. |
| virtual AppendChildLast<T1>(T1) | Adds the node to the end of the list of child nodes for this node. |
| override GetChildNodes<T1>() | Get all child nodes by the node type. |
| GetEnumerator() | Returns an enumerator that iterates through child nodes of the CompositeNode. |
| virtual InsertChild<T1>(int, T1) | Inserts the node to the specified position in the list of child nodes for this node. |
| InsertChildrenRange(int, IEnumerable<T>) | Inserts the node’s sequence starting from specified position in the list of child nodes for this node. |
| InsertChildrenRange(int, params T[]) | Inserts the node’s sequence starting from specified position in the list of child nodes for this node. |
| RemoveChild<T1>(T1) | Removes the child node. |
See Also