Table of Contents

Method SmartFormat

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

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

Formats block of text according to the parser rules.

public override bool SmartFormat(ref Point position, bool useSpace, int spacesInTab, ITextUndoList operations, string key = "")

Parameters

position Point
useSpace bool

Indicates whether indentation string should contain spaces or tabs

spacesInTab int

Specifies number of spaces in tab

operations ITextUndoList

List containing insertion or deletion of text fragments.

key string

Keystroke 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 blockEnd position of the blockIndicates whether indentation string should contain spaces or tabsSpecifies number of spaces in tabSpecifies if whole syntax block containing start and end point should be formattedList containing insertion or deletion of text fragments.
public override 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.