API Reference
Struct
MarkdownSourceSpan
Source span for markdown syntax nodes.
Inheritance
- ValueType
- MarkdownSourceSpan
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.