API Reference
MarkdownNativeBlock
Base type for an AST-backed native markdown block projection.
Inheritance
- Object
- MarkdownNativeBlock
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- 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
- Method MarkdownNativeContainerSourceSpans.GetAggregateChildSourceSpan
- Method MarkdownNativeDocument.CreateReplaceEdit
- Method MarkdownNativeDocument.TryCreateOriginalSourceSlice
- Method MarkdownNativeDocument.TryCreateOriginalSourceSlice
- Method MarkdownNativeDocument.TryCreateSourceMapping
- Method MarkdownNativeDocument.TryCreateSourceSlice
Methods
public Boolean ContainsLine(Int32 lineNumber) #BooleanReturns true when this block's source span contains the supplied 1-based line.
Parameters
- lineNumber System.Int32
public IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields() #IEnumerable<MarkdownNativeBlockSourceField>Enumerates source-backed fields owned by this block in source order.
public IEnumerable<MarkdownNativeBlockSourceField> EnumerateSourceFields(String name) #IEnumerable<MarkdownNativeBlockSourceField>Enumerates source-backed fields with the supplied field name owned by this block in source order.
Parameters
- name System.String
public MarkdownNativeBlockSourceField FindSourceField(String name, Int32 index = -1) #MarkdownNativeBlockSourceFieldFinds the first source-backed field with the supplied name, optionally constrained to a repeated-field occurrence index.
Parameters
- name System.String
- index System.Int32 = -1
public MarkdownNativeBlockSnapshot ToSnapshot() #MarkdownNativeBlockSnapshotCreates a UI-safe snapshot of this block without parser object references.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Id { get; } #Deterministic identity for this projection within stable markdown input.
public MarkdownNativeBlockKind Kind { get; } #Native projection kind.
public Nullable<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.