Question for GoToLine?

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Fertner Günter

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


Comments (2)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
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
Thank you very much!!!
The latest build of this product (v24.1.0) 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.