How to differentiate between selecting a whole line via margin click or mouse drag

SyntaxEditor for WPF Forum

Posted 4 years ago by Xinen Lee
Version: 15.1.0623
Avatar

Hi,

Is it possible to differentiate between selecting a whole line by clicking on the line number, and using the mouse to drag to select the whole line?

Comments (3)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

You would need to look at the selection's range via properties on editor.ActiveView.Selection.  A line selection via clicking on the line number will be the start of the previous line through the start of the current line.  A mouse selection of a line would likely be from the start of the current line through to the end of the current line.


Actipro Software Support

Posted 4 years ago by Xinen Lee
Avatar

Thanks for your reply. However when we select the last line, the line selection will only select the start to end of current line. So for the last line is there currently no way to differentiate between line and mouse selection?

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

That is correct since there is no offset for the caret to move to on the next line, as that would be beyond the end of the document.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.