Question for GoToLine?

SyntaxEditor for Windows Forms Forum

Posted 13 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 13 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 13 years ago by Fertner Günter
Avatar
Thank you very much!!!
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.