Table of Contents

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 SourceText

SourceText to process.

position Point

Point to convert.

Returns

int

Absolute position.