Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownNativeBlock

OfficeIMO.Markdown

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

Base type for an AST-backed native markdown block projection.

Inheritance

  • object
  • MarkdownNativeBlock

Derived Types

Usage

Explore 21 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.

Methods

public bool ContainsLine(int lineNumber) #

Returns true when this block's source span contains the supplied 1-based line.

Parameters

lineNumber int required

Returns

bool
EnumerateSourceFields 2 overloads
public IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields() #

Enumerates source-backed fields owned by this block in source order.

Returns

IEnumerable<MarkdownNativeBlockSourceField>
public IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields(string name) #

Enumerates source-backed fields with the supplied field name owned by this block in source order.

Parameters

name string required

Returns

IEnumerable<MarkdownNativeBlockSourceField>
public MarkdownNativeBlockSourceField? FindSourceField(string name, int index = -1) #

Finds the first source-backed field with the supplied name, optionally constrained to a repeated-field occurrence index.

Parameters

name string required
index int = -1 optional
public MarkdownNativeBlockInfo ToSnapshot() #

Creates a UI-safe snapshot of this block without parser object references.

Properties

public string Id { get; } #

Deterministic identity for this projection within stable markdown input.

public MarkdownNativeBlockKind Kind { get; } #

Native projection kind.

public MarkdownSourceSpan? SourceSpan { get; } #

Source span in the normalized markdown text when available.

public MarkdownSyntaxNode SyntaxNode { get; } #

Syntax node that produced this native block.

public IMarkdownBlock SourceBlock { get; } #

Original OfficeIMO markdown block backing this projection.