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
PointSpecifies current position in text.
useSpaces
boolIndicates whether indentation string should contain spaces or tabs.
spacesInTab
intSpecifies number of spaces in tab.
Returns
- int
Number of indentation characters.