Node Interface

Represents the document node.

C#
public interface Node
Derived

Remarks

This object is immutable.

This interface is a part of the visitor pattern.

Properties

Kind

Gets the kind of this node.

Methods

Accept(NodeVisitor)

Returns the object associated this node that is created with the specified visitor.

ToString(FormatOptions)

Returns the string representing the current object, formatting it with the spcified FormatOptions.

Properties Detail

Kind

Gets the kind of this node.

C#
NodeKind Kind { get; }

Property Value

Methods Detail

Accept(NodeVisitor)

Returns the object associated this node that is created with the specified visitor.

C#
void Accept(NodeVisitor visitor)

Parameters

visitor
NodeVisitor

The visitor.

See Also

ToString(FormatOptions)

Returns the string representing the current object, formatting it with the spcified FormatOptions.

C#
string ToString(FormatOptions options)

Parameters

options
FormatOptions

The format options.

Returns

The string representing the current object.