I need to check if something is selected in a syntax editor

SyntaxEditor for Windows Forms Forum

Posted 8 years ago by Thomas Barkholt - Assets & Purchase Coordinator, Simcorp
Version: 4.0.0287
Avatar
how do I do that?
i is basically neede to enable by copy/cut buttons in my toolbars.
I know thats posible..
thanks

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Thomas,

You can check the editor.SelectedView.Selection.IsZeroLength property to know if there is a selection.

You can attach to the SyntaxEditor.SelectionChanged event to know when the selection changes.


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.