Method SmartFormat
SmartFormat(ref Point, bool, int, ITextUndoList, string)
Formats block of text according to the parser rules.
public override bool SmartFormat(ref Point pos, bool useSpace, int spacesInTab, ITextUndoList operations, string key = "")
Parameters
posPointPosition of the text
useSpaceboolIndicates whether indentation string should contain spaces or tabs
spacesInTabintSpecifies number of spaces in tab
operationsITextUndoListList containing insertion or deletion of text fragments.
keystringKeystroke being typed.
Returns
- bool
True if succeed; otherwise false.