Posted 10 years ago by Nassim Farhat
Avatar
I'm trying to replicate C# breakpoint behaviour in Visual Studio.

When I click on the Indicator Margin, I want to obtain the line textrange.

Now, your sample expect users to select the range before being able to put a breakpoint. So I was wondering, how do I get the textrange of the line where my mouse clicked in the Indicator Margin. I would also like to obtain the text string in that line so that I can do some verifications before allowing the user to place his breakpoint (ex. text.lenght > 0 && text.contains(xxx) etc...).

Regards

[Modified at 08/06/2009 02:22 PM]

[Modified at 08/06/2009 02:23 PM]

Comments (1)

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

The SyntaxEditor.ViewMouseDown event gives you complete hit test info in: e.HitTestResult.

Look at the data in there. You can find things like DocumentLine, etc. that will get you what you want. You can use text ranges in there to get text.


Actipro Software Support

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.