API Reference

Struct

MarkdownSourceSlice

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Base ValueType
Modifiers sealed

Materialized source text for a span-backed syntax node.

Inheritance

  • ValueType
  • MarkdownSourceSlice

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public static Boolean TryCreate(String sourceText, MarkdownSourceSpan sourceSpan, MarkdownSourceTextKind textKind, out MarkdownSourceSlice slice) #
Returns: Boolean

Attempts to create a source slice from the supplied source text and span.

Parameters

sourceText System.String requiredposition: 0
sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 1
textKind OfficeIMO.Markdown.MarkdownSourceTextKind requiredposition: 2
slice OfficeIMO.Markdown.MarkdownSourceSlice@ requiredposition: 3
public static Boolean TryCreateFromLineColumns(String sourceText, MarkdownSourceSpan sourceSpan, MarkdownSourceTextKind textKind, out MarkdownSourceSlice slice) #
Returns: Boolean

Attempts to create a source slice using only line and column coordinates, ignoring any normalized-text offsets.

Parameters

sourceText System.String requiredposition: 0
sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 1
textKind OfficeIMO.Markdown.MarkdownSourceTextKind requiredposition: 2
slice OfficeIMO.Markdown.MarkdownSourceSlice@ requiredposition: 3

Properties

public MarkdownSourceSpan SourceSpan { get; } #

Source span represented by this slice.

public MarkdownSourceTextKind TextKind { get; } #

Source text kind used to materialize this slice.

public Int32 StartOffset { get; } #

0-based inclusive start offset in the backing source text.

public Int32 EndOffsetInclusive { get; } #

0-based inclusive end offset in the backing source text.

public String Text { get; } #

Exact source text covered by this slice.