Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

AsciiDocSourceText

OfficeIMO.AsciiDoc

Namespace
OfficeIMO.AsciiDoc
Assembly
OfficeIMO.AsciiDoc
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

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

Methods

public AsciiDocSourceSpan CreateSpan(int startOffset, int endOffset) #

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

Parameters

startOffset int required
endOffset int required
public AsciiDocSourcePosition GetPosition(int offset) #

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

Parameters

offset int required

Properties

public string Text { get; } #

Original source text.

public string PreferredLineEnding { get; } #

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

public int LineCount { get; } #

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