Method SmartFormat
SmartFormat(ref Point, bool, int, ITextUndoList, string)
Formats block of text according to the parser rules.
public virtual bool SmartFormat(ref Point pos, bool useSpace, int spacesInTab, ITextUndoList operations, string key = "")
Parameters
pos
PointPosition of the text
useSpace
boolIndicates whether indentation string should contain spaces or tabs
spacesInTab
intSpecifies number of spaces in tab
operations
ITextUndoListList containing insertion or deletion of text fragments.
key
stringKeystroke being typed.
Returns
- bool
True if succeed; otherwise false.
SmartFormat(ref Point, ref Point, bool, int, bool, ITextUndoList)
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 containing insertion or deletion of text fragments.public virtual bool SmartFormat(ref Point start, ref Point end, bool useSpaces, int spacesInTab, bool extended, ITextUndoList operations)
Parameters
Returns
- bool
True if succeed; otherwise false.