CompositeNode
Vue de l’ensemble
‘CompositeNode’ est une classe dans Aspose.Note FOSS pour Python.Déduit de: ‘Nodes’.
CompositeNode.AppendChildLast applique le nœud donné comme dernier enfant et retourne le noyau ajouté.
Cette classe fournit 7 méthodes pour travailler avec des objets CompositeNode dans les programmes Python. Les méthodologies disponibles comprennent: Accept, AppendChildFirst , AppendCildLast ; ‘GetChildeNodes; ' GetEnumerator et ‘InsertChilt. Tous les membres publics sont accessibles à n'importe quelle application Pythone après l'installation de l’Aspose.Note FOSS pour le package PyThone. Propriétés : Document., FirmChil`eux, ‘LasteChile’, ‘ParentNoda’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
FirstChild | `Node | None` | Read |
LastChild | `Node | None` | Read |
ParentNode | `Node | None` | Read |
Document | `Document | None` | Read |
méthodes
| Signature | Description |
|---|---|
AppendChildLast(node: TNode) → TNode | Adds the given node as the last child of this composite and returns the 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 |
Accept(visitor: DocumentVisitor) |
Voir aussi
- Aspose.Note — référence API d’entreprise