CompositeNode
General
CompositeNode is a class in Aspose.Note for Python.
Inherits from: Node.
CompositeNode és una classe en Aspose.Note per a Python. Hereta de: ゚Node⌒ .
CompositeNode permet la manipulació d’arbre DOM amb mètodes per afegir, inserir i enumerar nodes fills, així com propietats del primer i últim fill.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
FirstChild | `Node | None` | Read |
LastChild | `Node | None` | Read |
Mètodes
| Signature | Description |
|---|---|
AppendChildLast(node: TNode) → TNode | Appends the given node as the last child and returns the node |
AppendChildFirst(node: TNode) → TNode | Appends the given node as the first child and returns the node |
InsertChild(index: int, node: TNode) → TNode | Inserts the node at the specified index among children and returns the node |
RemoveChild(node: Node) | Removes the specified child node from this composite |
GetEnumerator() → Iterator[Node] | Returns an iterator over all direct child nodes |
GetChildNodes(node_type: type[TNode]) → list[TNode] | Returns a list of child nodes filtered by the given node type |