Not logged in
▾
Log In
Register
Forgot Password
Resend Validation E-mail
PRODUCTS▾
WPF Controls
Avalonia Controls
Windows Forms Controls
Universal Windows Controls
Icons
Apps
DOWNLOAD
BUY
PURCHASE
SUPPORT
COMPANY
BLOG
Get line number
SyntaxEditor for Windows Forms Forum
Previous
thread
Back to Forum
Up
Next
thread
Posted
20 years ago
by
phruby
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
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
Great! Thanks! <IMG SRC="smile.gif" border="0">
The latest build of this product (v24.1.1) was released 4 months ago, which was after the last post in this thread.
Add Comment
Please
log in
to a validated account to post comments.