Method GetSmartIndent
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v10.dll
GetSmartIndent(int, bool, bool, int)
Returns indentation string for specified line.
public virtual string GetSmartIndent(int index, bool autoIndent, bool useSpaces, int spacesInTab)
Parameters
indexintSpecifies index of line to obtain indentation level.
autoIndentboolIndicates whether indentation level should be calculated automatically, or obtained from the previous line.
useSpacesboolIndicates whether indentation string should contain spaces or tabs.
spacesInTabintSpecifies number of spaces in tab.
Returns
- string
Indentation text at line specified by index.
GetSmartIndent(IIndentationProvider, int, bool, int)
protected virtual int GetSmartIndent(IIndentationProvider provider, int index, bool useSpaces, int spacesInTab)
Parameters
providerIIndentationProviderindexintuseSpacesboolspacesInTabint