Method GetIndentationAtPosition
- Namespace
- Alternet.Syntax.Parsers.TypeScript
- Assembly
- Alternet.Syntax.Parsers.TypeScript.v10.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
positionPointSpecifies current position in text.
useSpacesboolIndicates whether indentation string should contain spaces or tabs.
spacesInTabintSpecifies number of spaces in tab.
Returns
- int
Number of indentation characters.