Index

Constructor methods

Properties

Methods

Constructor methods

constructor(snapshot: ISimpleText): TextSnapshot

Parameters

Returns

TextSnapshot

Properties

private lines: any

private snapshot: any

Methods

public getLineFromLineNumber(lineNumber: number): ITextSnapshotLine

Parameters

  • lineNumber: number

Returns

ITextSnapshotLine

private getLineFromLineNumberWorker(lineNumber: any): any

Parameters

  • lineNumber: any

Returns

any

public getLineFromPosition(position: number): ITextSnapshotLine

Parameters

  • position: number

Returns

ITextSnapshotLine

public getLineNumberFromPosition(position: number): number

Parameters

  • position: number

Returns

number

public getText(span: TextSpan): string

Parameters

Returns

string