Capture Selected Text in Syntax Editor

SyntaxEditor for WPF Forum

Posted 3 years ago by Daniel Fuentes
Version: 21.1.3


I would like to know if it is possible to raise or capture the current selected text in a syntax editor.

I already checked the ActiproSoftware.Windows.Controls.SyntaxEdito.EditorCommands which you can set as a command in a System.Windows.Controls.MenuItem and execute it. So the idea is to create a custom command to be able to capture the selected text in the syntax editor.

Thank you very much in advance! 

Comments (1)

Answer - Posted 3 years ago by Daniel Fuentes

Hello, I found the solution the Interface IEditorView contains the SelectedText property and the event that is raises when changes(event EventHandler<EditorViewSelectionEventArgs> SelectionChanged).

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.