Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

AsciiDocSourceText

Namespace OfficeIMO.AsciiDoc
Assembly OfficeIMO.AsciiDoc
Modifiers sealed

Original AsciiDoc source and its offset-to-line mapping.

Inheritance

  • Object
  • AsciiDocSourceText

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

Methods

public AsciiDocSourceSpan CreateSpan(Int32 startOffset, Int32 endOffset) #
Returns: AsciiDocSourceSpan

Creates a half-open span from zero-based offsets.

Parameters

startOffset System.Int32 requiredposition: 0
endOffset System.Int32 requiredposition: 1
public AsciiDocSourcePosition GetPosition(Int32 offset) #
Returns: AsciiDocSourcePosition

Maps a zero-based source offset to a one-based line and column.

Parameters

offset System.Int32 requiredposition: 0

Properties

public String Text { get; } #

Original source text.

public String PreferredLineEnding { get; } #

First line ending used by the document, or NewLine when absent.

public Int32 LineCount { get; } #

Number of logical lines. Empty source has one logical line.