Getting the line number a token is on

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Eben Roux
Avatar
Hello again,

Is there a way to find the line number a token is on?

Regards,
Eben

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sure, the Token has an offset range. Then you can convert that to a Position via Document.OffsetToPosition and the Position tells you the line number.


Actipro Software Support

Posted 14 years ago by Eben Roux
Avatar
Ah,

Thanks for the prompt response.

Eben
The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.