Share via


ITextSearchService.FindAll(FindData) Method

Definition

Searches for all the occurrences of the search string.

public:
 System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Text::SnapshotSpan> ^ FindAll(Microsoft::VisualStudio::Text::Operations::FindData findData);
public System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.SnapshotSpan> FindAll (Microsoft.VisualStudio.Text.Operations.FindData findData);
abstract member FindAll : Microsoft.VisualStudio.Text.Operations.FindData -> System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.SnapshotSpan>
Public Function FindAll (findData As FindData) As Collection(Of SnapshotSpan)

Parameters

findData
FindData

The data to use for this search.

Returns

A list of all the matches, or null if no matches were found.

Exceptions

The UseRegularExpressions flag of the find options is set and the search string is an invalid regular expression.

findData is null.

Applies to