API Reference
Struct
MarkdownSourceSpan
Source span for markdown syntax nodes.
Inheritance
- ValueType
- MarkdownSourceSpan
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 BoldInline.SourceSpan
- Property BoldItalicInline.SourceSpan
- Property BoldItalicSequenceInline.SourceSpan
- Property BoldSequenceInline.SourceSpan
- Property CalloutBlock.SourceSpan
- Property CodeBlock.SourceSpan
- Property CodeSpanInline.SourceSpan
- Property DefinitionListBlock.SourceSpan
- Property DefinitionListDefinition.SourceSpan
- Property DefinitionListEntry.SourceSpan
- Property DefinitionListGroup.SourceSpan
- Property DetailsBlock.SourceSpan
- Property FootnoteDefinitionBlock.SourceSpan
- Property FootnoteRefInline.SourceSpan
- Property FrontMatterBlock.SourceSpan
- Property HardBreakInline.SourceSpan
- Property HeadingBlock.SourceSpan
- Property HighlightInline.SourceSpan
- Property HighlightSequenceInline.SourceSpan
- Property HorizontalRuleBlock.SourceSpan
- Property HtmlCommentBlock.SourceSpan
- Property HtmlRawBlock.SourceSpan
- Property HtmlRawInline.SourceSpan
- Property HtmlTagSequenceInline.SourceSpan
- Property ImageBlock.SourceSpan
- Property ImageInline.SourceSpan
- Property ImageLinkInline.SourceSpan
- Property InlineSequence.SourceSpan
- Property ItalicInline.SourceSpan
- Property ItalicSequenceInline.SourceSpan
- Property LinkInline.SourceSpan
- Property ListItem.SourceSpan
- Property MarkdownBlock.SourceSpan
- Method MarkdownBlockSyntaxBuilderContext.GetAggregateSpan
- Property MarkdownDoc.SourceSpan
- Property MarkdownDocumentTransformContext.TopLevelBlockSourceSpans
- Property MarkdownDocumentTransformDiagnostic.AffectedFinalBlockSpan
- Property MarkdownDocumentTransformDiagnostic.AffectedOriginalBlockSpan
- Property MarkdownDocumentTransformDiagnostic.AffectedSourceSpan
- Property MarkdownInline.SourceSpan
- Method MarkdownInlineParserContext.GetSourceSpan
- Method MarkdownInlineSyntaxBuilderContext.GetAggregateSpan
- Property MarkdownObject.SourceSpan
- Property MarkdownSyntaxNode.SourceSpan
- Property OrderedListBlock.SourceSpan
- Property ParagraphBlock.SourceSpan
- Property QuoteBlock.SourceSpan
- Property SemanticFencedBlock.SourceSpan
- Property StrikethroughInline.SourceSpan
- Property StrikethroughSequenceInline.SourceSpan
- Property SummaryBlock.SourceSpan
- Property TableBlock.SourceSpan
- Property TableCell.SourceSpan
- Property TextRun.SourceSpan
- Property TocBlock.SourceSpan
- Property UnderlineInline.SourceSpan
- Property UnorderedListBlock.SourceSpan
Accepted by parameters
- Method ISyntaxMarkdownBlock.BuildSyntaxNode
- Method ISyntaxMarkdownBlockWithContext.BuildSyntaxNode
- Method ISyntaxMarkdownInline.BuildSyntaxNode
- Method MarkdownBlockSyntaxBuilderContext.BuildBlock
- Method MarkdownBlockSyntaxBuilderContext.BuildInlineContainerNode
- Constructor MarkdownDocumentTransformContext.MarkdownDocumentTransformContext
- Method MarkdownParseResult.FindDeepestFinalNodeContainingSpan
- Method MarkdownParseResult.FindDeepestFinalNodeOverlappingSpan
- Method MarkdownParseResult.FindDeepestNodeContainingSpan
- Method MarkdownParseResult.FindDeepestNodeOverlappingSpan
- Method MarkdownParseResult.FindFinalNodePathContainingSpan
- Method MarkdownParseResult.FindFinalNodePathOverlappingSpan
- Method MarkdownParseResult.FindNearestBlockContainingSpan
- Method MarkdownParseResult.FindNearestBlockOverlappingSpan
- Method MarkdownParseResult.FindNearestFinalBlockContainingSpan
- Method MarkdownParseResult.FindNearestFinalBlockOverlappingSpan
- Method MarkdownParseResult.FindNodePathContainingSpan
- Method MarkdownParseResult.FindNodePathOverlappingSpan
- Method MarkdownSourceSpan.Contains
- Method MarkdownSourceSpan.Equals
- Method MarkdownSourceSpan.Overlaps
- Constructor MarkdownSyntaxNode.MarkdownSyntaxNode
- Method MarkdownSyntaxNode.FindDeepestNodeContainingSpan
- Method MarkdownSyntaxNode.FindDeepestNodeOverlappingSpan
- Method MarkdownSyntaxNode.FindNearestBlockContainingSpan
- Method MarkdownSyntaxNode.FindNearestBlockOverlappingSpan
- Method MarkdownSyntaxNode.FindNodePathContainingSpan
- Method MarkdownSyntaxNode.FindNodePathOverlappingSpan
Constructors
MarkdownSourceSpan 2 overloads
public MarkdownSourceSpan(Int32 startLine, Int32 endLine) #Create a line-based source span.
Parameters
- startLine System.Int32
- endLine System.Int32
public MarkdownSourceSpan(Int32 startLine, Int32 startColumn, Int32 endLine, Int32 endColumn, Nullable<Int32> startOffset = null, Nullable<Int32> endOffset = null) #Create a source span with line, column, and optional normalized-text offsets.
Parameters
- startLine System.Int32
- startColumn System.Int32
- endLine System.Int32
- endColumn System.Int32
- startOffset System.Nullable{System.Int32} = null
- endOffset System.Nullable{System.Int32} = null
Methods
public Boolean Contains(MarkdownSourceSpan other) #Returns:
BooleanReturns true when this span fully contains the given span.
Parameters
- other OfficeIMO.Markdown.MarkdownSourceSpan
public Boolean ContainsLine(Int32 lineNumber) #Returns:
BooleanReturns true when the span contains the given 1-based line number.
Parameters
- lineNumber System.Int32
public Boolean ContainsPosition(Int32 lineNumber, Int32 columnNumber) #Returns:
BooleanReturns true when the span contains the given 1-based line and column.
Parameters
- lineNumber System.Int32
- columnNumber System.Int32
Equals 2 overloads
public override Int32 GetHashCode() #Returns:
Int32public Boolean Overlaps(MarkdownSourceSpan other) #Returns:
BooleanReturns true when this span overlaps the given span.
Parameters
- other OfficeIMO.Markdown.MarkdownSourceSpan
public override String ToString() #Returns:
StringInherited Methods
Properties
public Int32 StartLine { get; } #1-based start line.
public Nullable<Int32> StartColumn { get; } #1-based start column.
public Int32 EndLine { get; } #1-based end line.
public Nullable<Int32> EndColumn { get; } #1-based end column.
public Nullable<Int32> StartOffset { get; } #0-based start offset in the normalized markdown text.
public Nullable<Int32> EndOffset { get; } #0-based end offset in the normalized markdown text.