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

NameTypeAccessDescription
FirstChild`NodeNone`Read
LastChild`NodeNone`Read

Mètodes

SignatureDescription
AppendChildLast(node: TNode)TNodeAppends the given node as the last child and returns the node
AppendChildFirst(node: TNode)TNodeAppends the given node as the first child and returns the node
InsertChild(index: int, node: TNode)TNodeInserts 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
 Català