Table of Contents

Method GetIndentationAtPosition

Namespace
Alternet.Syntax.Parsers.TypeScript
Assembly
Alternet.Syntax.Parsers.TypeScript.v9.dll

GetIndentationAtPosition(Point, bool, int)

When implemented by a class, gets line indentation at specified position.

int GetIndentationAtPosition(Point position, bool useSpaces, int spacesInTab)

Parameters

position Point

Specifies current position in text.

useSpaces bool

Indicates whether indentation string should contain spaces or tabs.

spacesInTab int

Specifies number of spaces in tab.

Returns

int

Number of indentation characters.