Table of Contents

Method SmartFormatLine

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

SmartFormatLine(int, string, StringItemInfo[], ITextUndoList)

When implemented by a class, formats line according to the parser rules.

int SmartFormatLine(int index, string text, StringItemInfo[] textData, ITextUndoList operations)

Parameters

index int

Specifies index of line to format.

text string

Specifies string representation of the line.

textData StringItemInfo[]

Specifies data containing color information for the given string.

operations ITextUndoList

List containing insertion or deletion of text fragments.

Returns

int

Indentation level at given line.

SmartFormatLine(int, string, StringItemInfo[], ITextUndoList, out bool)

When implemented by a class, formats line according to the parser rules.

int SmartFormatLine(int index, string text, StringItemInfo[] textData, ITextUndoList operations, out bool actualPosition)

Parameters

index int

Specifies index of line to format.

text string

Specifies string representation of the line.

textData StringItemInfo[]

Specifies data containing color information for the given string.

operations ITextUndoList

List containing insertion or deletion of text fragments.

actualPosition bool

If true, the indentation position will be returned, otherwise, the level.

Returns

int

Indentation level at given line.