MarkdownNativeBlock
OfficeIMO.Markdown
Base type for an AST-backed native markdown block projection.
Inheritance
- object
- MarkdownNativeBlock
Derived Types
- MarkdownNativeCalloutBlock
- MarkdownNativeCodeBlock
- MarkdownNativeCustomContainerBlock
- MarkdownNativeDefinitionListBlock
- MarkdownNativeDetailsBlock
- MarkdownNativeFootnoteDefinitionBlock
- MarkdownNativeFrontMatterBlock
- MarkdownNativeHeadingBlock
- MarkdownNativeHtmlBlock
- MarkdownNativeImageBlock
- MarkdownNativeListBlock
- MarkdownNativeOtherBlock
- MarkdownNativeParagraphBlock
- MarkdownNativeQuoteBlock
- MarkdownNativeTableBlock
- MarkdownNativeThematicBreakBlock
- MarkdownNativeVisualBlock
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.
Returned or exposed by 17
- Property MarkdownNativeBlockSourceField.Block
- Property MarkdownNativeCalloutBlock.Children
- Property MarkdownNativeCustomContainerBlock.Children
- Property MarkdownNativeDefinitionListBlock.Children
- Property MarkdownNativeDefinitionListDefinition.Children
- Property MarkdownNativeDetailsBlock.Children
- Property MarkdownNativeDiagnostic.Block
- Method MarkdownNativeDocument.DescendantBlocksAndSelf
- Method MarkdownNativeDocument.FindBlockAtLine
- Method MarkdownNativeDocument.FindBlockAtPosition
- Method MarkdownNativeDocument.FindBlockById
- Method MarkdownNativeDocument.GetBlockPath
- Property MarkdownNativeDocument.Blocks
- Property MarkdownNativeFootnoteDefinitionBlock.Children
- Property MarkdownNativeListItem.Children
- Property MarkdownNativeQuoteBlock.Children
- Property MarkdownNativeTableCell.Children
Accepted by parameters 4
Methods
public bool ContainsLine(int lineNumber) #Returns true when this block's source span contains the supplied 1-based line.
Parameters
- lineNumber int
Returns
boolpublic 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
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
- index int = -1
Returns
MarkdownNativeBlockSourceField?public MarkdownNativeBlockInfo ToSnapshot() #Creates a UI-safe snapshot of this block without parser object references.
Returns
MarkdownNativeBlockInfoInherited Methods
Properties
public string Id { get; } #Deterministic identity for this projection within stable markdown input.
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.