CompositeNode
Overview
CompositeNode is a class in Aspose.Note FOSS for Python.
Inherits from: Node.
CompositeNode.AppendChildLast appends the given node as the last child and returns the added node.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
FirstChild | Node | None | Read | Provides the first child node or None if there are no children |
LastChild | Node | None | Read |
Methods
| Signature | Description |
|---|---|
AppendChildLast(node: TNode) → TNode | Appends the given node as the last child and returns the added node |
AppendChildFirst(node: TNode) → TNode | Inserts the given node as the first child and returns the added node |
InsertChild(index: int, node: TNode) → TNode | Inserts the given node at the specified index among children and returns the added node |
RemoveChild(node: Node) | Removes the specified child node from this composite node |
GetEnumerator() → Iterator[Node] | Returns an iterator over the child nodes of this composite node |
GetChildNodes(node_type: type[TNode]) → list[TNode] | Returns a list of child nodes that match the provided node type |