CompositeNode

概述

CompositeNode 是Python的Aspose.Note FOSS中的一个类. 继承人: Node.

CompositeNode.AppendChildLast 将给定的节点作为最后一个子,并返回添加的节 node.

这个类提供了在Python程序中与CompositeNode对象工作的7种方法. 有的方法包括: Accept, AppendChildFirst, AppendChildLast, GetChildNodes, GetEnumerator, InsertChild, RemoveChild. 在安装Python包的Aspose.Note FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: Document, FirstChild, LastChild, ParentNode.

属性

名称:类型Access描述情况
FirstChild`NodeNone`阅读
LastChild`NodeNone`阅读
ParentNode`NodeNone`阅读
Document`DocumentNone`阅读

方法

Signature描述情况
AppendChildLast(node: TNode)TNode将给定节点作为该组合的最后一个子,并返回节點.
AppendChildFirst(node: TNode)TNode将给定节点作为第一个子项,并返回添加的节位.
InsertChild(index: int, node: TNode)TNode将给定的节点插入到指定索引中,并返回添加的节點.
RemoveChild(node: Node)从这个复合节点中删除指定子节點.
GetEnumerator()Iterator[Node]返回一个对该复合节点的子节位进行代.
GetChildNodes(node_type: type[TNode])list[TNode]返回与所提供的节点类型相匹配的子节點列表
Accept(visitor: DocumentVisitor)

另请参阅

 中文