In This Article

IEditorViewSearcher Interface

Provides the base requirements for an object that can perform find/replace and other search-related operations on an IEditorView.

public interface IEditorViewSearcher

Properties

SelectionScopeSnapshotRange

Gets the TextSnapshotRange in which to search for selection-based scopes.

TextSnapshotRange SelectionScopeSnapshotRange { get; }

Property Value

TextSnapshotRange:

The TextSnapshotRange in which to search for selection-based scopes.

Methods

FindAll(IEditorSearchOptions)

Performs a find all operation.

ISearchResultSet FindAll(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.

Returns

ISearchResultSet:

An ISearchResultSet that specifies the result of the operation.

FindCurrentOrNext(IEditorSearchOptions)

Performs a find next operation that can possibly match at the current caret offset.

ISearchResultSet FindCurrentOrNext(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.

Returns

ISearchResultSet:

An ISearchResultSet that specifies the result of the operation.

FindNext(IEditorSearchOptions)

Performs a find next operation.

ISearchResultSet FindNext(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.

Returns

ISearchResultSet:

A ISearchResultSet that specifies the result of the operation.

FindNextIncremental(Boolean)

Performs an incremental search find next operation.

ISearchResultSet FindNextIncremental(bool searchUp)
Parameter Type Description
searchUp Boolean

Whether to search upwards.

Returns

ISearchResultSet:

A ISearchResultSet that specifies the result of the operation.

ReplaceAll(IEditorSearchOptions)

Performs a replace all operation.

ISearchResultSet ReplaceAll(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.

Returns

ISearchResultSet:

A ISearchResultSet that specifies the result of the operation.

ReplaceNext(IEditorSearchOptions)

Performs a replace next operation.

ISearchResultSet ReplaceNext(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.

Returns

ISearchResultSet:

A ISearchResultSet that specifies the result of the operation.

SetSearchStartOffset(IEditorSearchOptions)

Sets the search start offset based on the current selection.

void SetSearchStartOffset(IEditorSearchOptions options)
Parameter Type Description
options IEditorSearchOptions

The IEditorSearchOptions to use.