AdfNode Class
Represents a node of an Atlassian Document Format document.
public abstract class AdfNodeConstructors
| Name | Description |
|---|---|
| AdfNode() |
AdfNode()
AdfNode.csprotected AdfNode()No documentation is available.
Properties
| Name | Description |
|---|---|
| Content | Gets the child nodes. The list is empty for leaf nodes. |
| Kind | Gets the type of the node. |
| LocalId | Gets the identifier of the node inside the document, when the document defines one. |
| Marks | Gets the marks applied to the node. The list is empty when the node carries no mark. |
Content
AdfNode.csGets the child nodes. The list is empty for leaf nodes.
public IReadOnlyList<AdfNode> Content { get; init; }Property value
Kind
LocalId
AdfNode.csMarks
AdfNode.csGets the marks applied to the node. The list is empty when the node carries no mark.
public IReadOnlyList<AdfMark> Marks { get; init; }Property value
Methods
| Name | Description |
|---|---|
| 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.csEnumerates this node and all its descendants, depth first.
public IEnumerable<AdfNode> DescendantsAndSelf()Returns
GetMark<T>()
AdfNode.csGets the first mark of the specified type, or null when the node does not carry one.
public T? GetMark<T>() where T : AdfMarkType parameters
T- The type of the mark to find.
Returns
T?