Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownObject

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
abstract

Base type for the navigable OfficeIMO.Markdown object tree.

Inheritance

  • object
  • MarkdownObject

Derived Types

Usage

Explore 506 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 504

Accepted by parameters 2

Methods

public void Accept(MarkdownVisitor visitor) #

Dispatches this node to a visitor.

Parameters

visitor OfficeIMO.Markdown.MarkdownVisitor required
public IEnumerable<MarkdownObject> Ancestors() #

Enumerates ancestor nodes starting from the parent.

Returns

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

Enumerates this node followed by its ancestors.

Returns

IEnumerable<MarkdownObject>
public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #

Enumerates descendants of the requested node type.

Type Parameters

TObject

Returns

IEnumerable<TObject>
public IEnumerable<MarkdownObject> Descendants() #

Enumerates descendant nodes in depth-first order.

Returns

IEnumerable<MarkdownObject>

Properties

public MarkdownObject? Parent { get; private set; } #

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

public MarkdownDocument? Document { get; } #

Containing document for this node when attached to a tree.

public MarkdownObject Root { get; } #

Root node for this object's tree.

public int? IndexInParent { get; private set; } #

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

public MarkdownObject? PreviousSibling { get; private set; } #

Previous sibling in the parent container when available.

public MarkdownObject? NextSibling { get; private set; } #

Next sibling in the parent container when available.

public MarkdownSourceSpan? SourceSpan { get; internal set; } #

Source span mapped from the syntax tree when available.

public MarkdownAttributeSet Attributes { get; } #

Generic Markdown attributes associated with this node.

public IReadOnlyList<MarkdownObject> ChildObjects { get; } #

Immediate child objects in document order.