Interface ITextSnapshot

Index

Methods

Methods

public getLineFromLineNumber(lineNumber: number): ITextSnapshotLine

Parameters

  • lineNumber: number

Returns

ITextSnapshotLine

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