OfficeIMO

API Reference

Class

MarkdownObject

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers abstract

Base type for the navigable OfficeIMO.Markdown object tree.

Inheritance

  • Object
  • MarkdownObject

Methods

public Void Accept(MarkdownVisitor visitor) #
Returns: Void

Dispatches this node to a visitor.

Parameters

visitor OfficeIMO.Markdown.MarkdownVisitor requiredposition: 0
public IEnumerable<MarkdownObject> Ancestors() #
Returns: IEnumerable<MarkdownObject>

Enumerates ancestor nodes starting from the parent.

public IEnumerable<MarkdownObject> AncestorsAndSelf() #
Returns: IEnumerable<MarkdownObject>

Enumerates this node followed by its ancestors.

public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #
Returns: IEnumerable<TObject>

Type Parameters

TObject
DescendantObjectsOfType``1() #

Enumerates descendants of the requested node type.

public IEnumerable<MarkdownObject> Descendants() #
Returns: IEnumerable<MarkdownObject>

Enumerates descendant nodes in depth-first order.

Properties

public MarkdownObject Parent { get; set; } #

Parent node in the markdown object tree, or null for the document root.

public MarkdownDoc Document { get; } #

Containing document for this node when attached to a tree.

public MarkdownObject Root { get; } #

Root node for this object's tree.

public Nullable<Int32> IndexInParent { get; set; } #

Zero-based index within the parent when this node is attached to a tree.

public MarkdownObject PreviousSibling { get; set; } #

Previous sibling in the parent container when available.

public MarkdownObject NextSibling { get; set; } #

Next sibling in the parent container when available.

public Nullable<MarkdownSourceSpan> SourceSpan { get; set; } #

Source span mapped from the syntax tree when available.

public IReadOnlyList<MarkdownObject> ChildObjects { get; } #

Immediate child objects in document order.