AdfNode Class

Represents a node of an Atlassian Document Format document.

public abstract class AdfNode

Constructors

NameDescription
AdfNode()

AdfNode()

AdfNode.cs
protected AdfNode()

No documentation is available.

Properties

NameDescription
ContentGets the child nodes. The list is empty for leaf nodes.
KindGets the type of the node.
LocalIdGets the identifier of the node inside the document, when the document defines one.
MarksGets the marks applied to the node. The list is empty when the node carries no mark.

Content

AdfNode.cs

Gets the child nodes. The list is empty for leaf nodes.

public IReadOnlyList<AdfNode> Content { get; init; }

Kind

Gets the type of the node.

public abstract AdfNodeKind Kind { get; }

Property value

AdfNodeKind

LocalId

AdfNode.cs

Gets the identifier of the node inside the document, when the document defines one.

public string? LocalId { get; init; }

Property value

string?

Gets the marks applied to the node. The list is empty when the node carries no mark.

public IReadOnlyList<AdfMark> Marks { get; init; }

Methods

NameDescription
DescendantsAndSelf()Enumerates this node and all its descendants, depth first.
GetMark<T>()Gets the first mark of the specified type, or null when the node does not carry one.

DescendantsAndSelf()

AdfNode.cs

Enumerates this node and all its descendants, depth first.

public IEnumerable<AdfNode> DescendantsAndSelf()

GetMark<T>()

AdfNode.cs

Gets the first mark of the specified type, or null when the node does not carry one.

public T? GetMark<T>() where T : AdfMark

Type parameters

T
The type of the mark to find.

Returns

T?