Class
AsciiDocSourceText
OfficeIMO.AsciiDoc
Original AsciiDoc source and its offset-to-line mapping.
Inheritance
- object
- AsciiDocSourceText
Usage
Explore 2 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 2
- Property AsciiDocDocument.Source
- Property AsciiDocSyntaxTree.Source
Methods
public AsciiDocSourceSpan CreateSpan(int startOffset, int endOffset) #Creates a half-open span from zero-based offsets.
Parameters
- startOffset int
- endOffset int
Returns
AsciiDocSourceSpanpublic AsciiDocSourcePosition GetPosition(int offset) #Maps a zero-based source offset to a one-based line and column.
Parameters
- offset int
Returns
AsciiDocSourcePosition