Method GetPosFromPosition
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v9.dll
GetPosFromPosition(SourceText, Point)
Converts given position into absolute text coordinate.
public virtual int GetPosFromPosition(SourceText text, Point position)
Parameters
text
SourceTextSourceText
to process.position
PointPoint
to convert.
Returns
- int
Absolute position.