Table of Contents

Method GetSmartIndent

Namespace
Alternet.Syntax.Parsers.Roslyn
Assembly
Alternet.Syntax.Parsers.Roslyn.v9.dll

GetSmartIndent(int, bool, bool, int)

When implemented by a class, returns indentation string for specified line.

string GetSmartIndent(int index, bool autoIndent, bool useSpaces, int spacesInTab)

Parameters

index int

Specifies index of line to obtain indentation level.

autoIndent bool

Indicates whether indentation level should be calculated automatically, or obtained from the previous line.

useSpaces bool

Indicates whether indentation string should contain spaces or tabs.

spacesInTab int

Specifies number of spaces in tab.

Returns

string

Indentation text at line specified by index.