Question for GoToLine?

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Fertner Günter
Avatar
Hallo,

wenn I want go to line 150 (e.g.) then the active line ist at the bottom of the editor document.

I want to go to line 150 and the active line should be at the top of the editor document.

It's that possible? how?

Tank you

Guenter

Comments (2)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes one of the EditorView.GoToLine overloads takes a parameter that says how many display lines to place above where the caret is. You know the visible display line count for the EditorView so you can calculate what to set to that parameter to get the effect you want.


Actipro Software Support

Posted 19 years ago by Fertner Günter
Avatar
Thank you very much!!!
The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.