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

SyntaxEditor for Windows Forms Forum

Posted 13 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 13 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 (v24.1.0) 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.