Class Node

Class Node

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

The base class for all nodes of an Aspose.Note document.

public abstract class Node : INode
{
    public virtual void DoSomething()
    {
    }
    protected int _someField;
    private string _anotherField;
    public Node(string anotherField)
    {
    }
}

Inheritance

object Node

Derived

AttachedFile , CompositeNodeBase , InkNode , Loop , RichText

Implements

INode

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Node(NodeType)

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

protected Node Node(NodeType nodeType)
   {
       this.NodeType = nodeType;
       this.ChildNodes = new List<Node>();
       this.ParentNode = null;
   }

Parameters

nodeType NodeType

The type of the node.

Properties

Document

Gets the document of the node.

public Document Document
   {
      get
      {
         return _document;
      }
   }
In this case, I've added braces to enclose the getter and made sure that there is a consistent spacing between properties, methods, braces, and operators. This is in line with standard C# conventions for readability and indentation.

Property Value

Document

IsComposite

Gets a value indicating whether this node is composite. If true the node can have child nodes.

public virtual bool IsComposite
{
    get;
}

Property Value

bool

NextSibling

Gets the next node at the same node tree level.

public INode NextSibling
   {
      get
      {
      }
   }

Property Value

INode

NodeType

Gets the node type.

public NodeType
    {
        get
        {
            return _nodeType;
        }
    }
    private readonly NodeType _nodeType;

Property Value

NodeType

ParentNode

Gets the parent node.

public ICompositeNode ParentNode
   {
      get;
   }

Property Value

ICompositeNode

PreviousSibling

Gets the previous node at the same node tree level.

public INode PreviousSibling
   {
      get
      {
         return _next?.Previous;
      }
   }

Property Value

INode

Methods

Accept(DocumentVisitor)

Accepts the visitor of the node.

public abstract void Accept(DocumentVisitor visitor)
   {
   }

Parameters

visitor DocumentVisitor

The object of a class derived from the Aspose.Note.DocumentVisitor.

 English