Method GetSmartIndentString
- Namespace
- Alternet.Syntax.Parsers.TypeScript
- Assembly
- Alternet.Syntax.Parsers.TypeScript.v9.dll
GetSmartIndentString(int, bool, bool, int)
Returns indentation string for specified line.
public override string GetSmartIndentString(int index, bool autoIndent, bool useSpaces, int spacesInTab)
Parameters
index
intSpecifies index of line to obtain indentation level.
autoIndent
boolIndicates whether indentation level should be calculated automatically, or obtained from the previous line.
useSpaces
boolIndicates whether indentation string should contain spaces or tabs.
spacesInTab
intSpecifies number of spaces in tab.
Returns
- string
Indentation text at line specified by index.