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

Comments (2)

Posted 15 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 15 years ago by phruby
Avatar
Great! Thanks! <IMG SRC="smile.gif" border="0">
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.