Posted 15 years ago by Ryan
Can anyone tell me how to select a range of lines?
I would like for the user to be able to enter a starting line and and ending

I know this is not it but as an example of what I am looking for.
SyntaxEditor1.SelectedView.Selection.SelectLineRange(10, 20)

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Ryan,

If you know the document line indices are in bounds, then you can do this:
TextRange range = new TextRange(editor.Document.Lines[startLineIndex].StartOffset, 

Actipro Software Support

The latest build of this product (v24.1.0) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.