Class CompositeNodeBase

Class CompositeNodeBase

Namespace: Aspose.Note
Assembly: Aspose.Note.dll (24.12.0)

The non-generic class for nodes that can contain other nodes.

public abstract class CompositeNodeBase : Node, INode, ICompositeNode

Inheritance

objectNodeCompositeNodeBase

Derived

CompositeNode<t>, Title

Implements

INode, ICompositeNode

Inherited Members

Node.Accept(DocumentVisitor), Node.Document, Node.IsComposite, Node.NodeType, Node.ParentNode, Node.PreviousSibling, Node.NextSibling, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

CompositeNodeBase(NodeType)

Initializes a new instance of the Aspose.Note.CompositeNodeBase class.

protected CompositeNodeBase(NodeType nodeType)

Parameters

nodeType NodeType

The type of the node.

Methods

CheckDocument(Node)

Checks Document field of a new node

protected void CheckDocument(Node node)

Parameters

node Node

New node to be inserted

GetChildNodes(NodeType)

Get all child nodes by node type.

[Obsolete("Use GetChildNodes<t>() method instead.")]
public abstract List<inode> GetChildNodes(NodeType type)

Parameters

type NodeType

The node type.

Returns

List<INode&gt;

A list of child nodes.

GetChildNodes<t1>()

Get all child nodes by the node type.

public abstract List<t1> GetChildNodes<t1>() where T1 : class, INode

Returns

List<t1>

A list of child nodes.

Type Parameters

T1

The type of elements in the returned list. </t1></t1></t>