Posted 20 years ago by phruby
Avatar
How can I get the current line number of a certain token I am currently reading?

Comments (2)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Use the Document.OffsetToPosition method and pass in the Token's start offset. That method returns a Position, of which you can check the Line property to get the document line.


Actipro Software Support

Posted 20 years ago by phruby
Avatar
Great! Thanks! <IMG SRC="smile.gif" border="0">
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.