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
how do I do that?
i is basically neede to enable by copy/cut buttons in my toolbars.
I know thats posible..

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
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 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.