In This Article

SearchActionBase Class

Provides a base class for an IEditAction that can perform searching.

public abstract class SearchActionBase : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Derived:
FindAction ReplaceAction
Implements:
IEditAction IKeyedObject

Constructors

SearchActionBase(string)

Initializes an instance of the SearchActionBase class.

protected SearchActionBase(string text)
Parameter Type Description
text string

The command text.

Methods

UpdateSearchOptionsFindTextFromSelection(IEditorView)

Updates the find text in the SearchOptions from the view's current selection, if the selection is on a single line.

protected virtual bool UpdateSearchOptionsFindTextFromSelection(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView to examine.

Returns

bool:

true if the find text was updated; otherwise, false.

Remarks

The update fails if more than one line is selected.

Inherited Members