Method GetSmartIndent
GetSmartIndent(int, bool)
Returns indentation level of specified line.
public virtual int GetSmartIndent(int index, bool autoIndent)
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.
Returns
- int
Indentation level at line specified by index.
GetSmartIndent(int, bool, out bool)
Returns indentation level of specified line.
public virtual int GetSmartIndent(int index, bool autoIndent, out bool actualPosition)
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.
actualPosition
boolIf true, the indentation position will be returned, otherwise, the level.
Returns
- int
Indentation level at line specified by index.
GetSmartIndent(ISyntaxNode, int, ref int)
protected virtual bool GetSmartIndent(ISyntaxNode node, int index, ref int indent)
Parameters
node
ISyntaxNodeindex
intindent
int
Returns
GetSmartIndent(ISyntaxNodes, int, bool)
protected virtual int GetSmartIndent(ISyntaxNodes nodes, int index, bool autoIndent)
Parameters
nodes
ISyntaxNodesindex
intautoIndent
bool