EditorSearchView - populating the Find-What box with text selected in the editor

SyntaxEditor for Silverlight Forum

Posted 12 years ago by Anita
Version: 10.2.0531
Avatar

Hi,

Is it possible to populate the Find-What box of the EditorSearchView with the text selected in the associated editor control?

I've read the documentation, but do not see any property nor method of the EditorSearchView class, which could allow me to do this.

This would save the user from having to manually type in the text to find/replace, and would be inline with the general behaviour of find/replace dialogs.

Thanks,

Anita

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Anita,

The EditorSearchView.SearchOptions property is a IEditorSearchOptions. That is what has the find text, replace text, match case, etc. options on it. So you can set the FindText property there and it should update in the EditorSearchView.


Actipro Software Support

The latest build of this product (v18.1 build 0233) was released 5 years ago, which was after the last post in this thread.