Location of caret in SyntaxEditor?

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by shark92651
Avatar
How can I get the location of the caret in the control as client coordinates?

Comments (1)

Posted 15 years ago by shark92651
Avatar
Nevermind, I found this to be a good method:

Rectangle rect = syntaxEditor.Document.CurrentView.
GetCharacterBounds(syntaxEditor.Caret.Offset);
The latest build of this product (v2018.1 build 0342) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.