Method GetIndentationAtPosition
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v9.dll
GetIndentationAtPosition(string, Point)
Gets line indentation at specified position.
public int GetIndentationAtPosition(string fileName, Point position)
Parameters
fileName
stringFile name containing source code.
position
PointSpecifies current position in text.
Returns
- int
Number of indentation characters.
GetIndentationAtPosition(string, Point, FormatCodeOptions)
Gets line indentation at specified position.
public int GetIndentationAtPosition(string fileName, Point position, FormatCodeOptions options)
Parameters
fileName
stringFile name containing source code.
position
PointSpecifies current position in text.
options
FormatCodeOptionsFormatting options.
Returns
- int
Number of indentation characters.