Table of Contents

Method SmartFormat

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

SmartFormat(ref Point, bool, int, ITextUndoList)

When implemented by a class, formats block of text according to the parser rules.

Position of the text Indicates whether indentation string should contain spaces or tabs Specifies number of spaces in tab List of changes.
bool SmartFormat(ref Point pos, bool useSpaces, int spacesInTab, ITextUndoList operations)

Parameters

pos Point
useSpaces bool
spacesInTab int
operations ITextUndoList

Returns

bool

True if succeed; otherwise false.

SmartFormat(ref Point, ref Point, bool, int, bool, ITextUndoList)

When implemented by a class, formats block of text according to the parser rules.

Start position of the block End position of the block Indicates whether indentation string should contain spaces or tabs Specifies number of spaces in tab Specifies if whole syntax block containing start and end point should be formatted List of changes.
bool SmartFormat(ref Point start, ref Point end, bool useSpaces, int spacesInTab, bool extended, ITextUndoList operations)

Parameters

start Point
end Point
useSpaces bool
spacesInTab int
extended bool
operations ITextUndoList

Returns

bool

True if succeed; otherwise false.