Getting the line number a token is on

SyntaxEditor for Windows Forms Forum

Posted 19 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 19 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 19 years ago by Eben Roux
Avatar
Ah,

Thanks for the prompt response.

Eben
The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.