Table of Contents

Method GetIndentationAtPosition

Namespace
Alternet.Common.TypeScript.Compiler
Assembly
Alternet.Common.TypeScript.v9.dll

GetIndentationAtPosition(string, Point)

Gets line indentation at specified position.

public int GetIndentationAtPosition(string fileName, Point position)

Parameters

fileName string

File name containing source code.

position Point

Specifies current position in text.

Returns

int

Number of indentation characters.

GetIndentationAtPosition(string, Point, FormatCodeOptions)

Gets line indentation at specified position.

public int GetIndentationAtPosition(string fileName, Point position, FormatCodeOptions options)

Parameters

fileName string

File name containing source code.

position Point

Specifies current position in text.

options FormatCodeOptions

Formatting options.

Returns

int

Number of indentation characters.