Method SmartFormat
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v10.dll
SmartFormat(ref Point, ref Point, bool, int, bool, ITextUndoList)
Formats block of text according to the parser rules.
public override bool SmartFormat(ref Point start, ref Point end, bool useSpaces, int spacesInTab, bool extended, ITextUndoList operations)
Parameters
startPointStart position of the block
endPointEnd position of the block
useSpacesboolIndicates whether indentation string should contain spaces or tabs
spacesInTabintSpecifies number of spaces in tab
extendedboolSpecifies if whole syntax block containing start and end point should be formatted
operationsITextUndoListList of changes.
Returns
- bool
True if succeed; otherwise false.