Table of Contents

Method GetIndentationAtPosition

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

GetIndentationAtPosition(Point, bool, int)

Gets line indentation at specified position.

public virtual 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.