Table of Contents

Class NodeItem

Namespace
Mythosia.Documents.Elements
Assembly
Mythosia.Documents.Abstractions.dll

Base class for all tree nodes in the document structure. Follows the docling NodeItem convention with self_ref, parent, and children pointers.

public class NodeItem
Inheritance
NodeItem
Derived
Inherited Members

Properties

Children

References to child nodes in the document tree.

public List<RefItem> Children { get; set; }

Property Value

List<RefItem>

ContentLayer

Which content layer this node belongs to.

public ContentLayer ContentLayer { get; set; }

Property Value

ContentLayer

Parent

Reference to the parent node in the document tree.

public RefItem? Parent { get; set; }

Property Value

RefItem

SelfRef

JSON pointer self-reference (e.g. "#/texts/0", "#/body").

public string SelfRef { get; set; }

Property Value

string

Methods

GetRef()

Returns a RefItem pointing to this node.

public RefItem GetRef()

Returns

RefItem