ITextSearchService2.FindAll Method

Definition

Searches for all occurrences of the search.

Overloads

FindAll(SnapshotSpan, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange.

FindAll(SnapshotSpan, SnapshotPoint, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange starting from startingPosition.

Remarks

This method is safe to be executed on any thread.

FindAll(SnapshotSpan, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::SnapshotSpan> ^ FindAll(Microsoft::VisualStudio::Text::SnapshotSpan searchRange, System::String ^ searchPattern, Microsoft::VisualStudio::Text::Operations::FindOptions options);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.SnapshotSpan> FindAll (Microsoft.VisualStudio.Text.SnapshotSpan searchRange, string searchPattern, Microsoft.VisualStudio.Text.Operations.FindOptions options);
abstract member FindAll : Microsoft.VisualStudio.Text.SnapshotSpan * string * Microsoft.VisualStudio.Text.Operations.FindOptions -> seq<Microsoft.VisualStudio.Text.SnapshotSpan>
Public Function FindAll (searchRange As SnapshotSpan, searchPattern As String, options As FindOptions) As IEnumerable(Of SnapshotSpan)

Parameters

searchRange
SnapshotSpan

The range to search in.

searchPattern
String

The pattern to search for.

options
FindOptions

The options to use while performing the search operation.

Returns

An IEnumerable<T> containing all occurrences of the searchPattern.

Remarks

This method is safe to execute on any thread.

Applies to

FindAll(SnapshotSpan, SnapshotPoint, String, FindOptions)

Finds all occurrences of the searchPattern in searchRange starting from startingPosition.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::SnapshotSpan> ^ FindAll(Microsoft::VisualStudio::Text::SnapshotSpan searchRange, Microsoft::VisualStudio::Text::SnapshotPoint startingPosition, System::String ^ searchPattern, Microsoft::VisualStudio::Text::Operations::FindOptions options);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.SnapshotSpan> FindAll (Microsoft.VisualStudio.Text.SnapshotSpan searchRange, Microsoft.VisualStudio.Text.SnapshotPoint startingPosition, string searchPattern, Microsoft.VisualStudio.Text.Operations.FindOptions options);
abstract member FindAll : Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.SnapshotPoint * string * Microsoft.VisualStudio.Text.Operations.FindOptions -> seq<Microsoft.VisualStudio.Text.SnapshotSpan>
Public Function FindAll (searchRange As SnapshotSpan, startingPosition As SnapshotPoint, searchPattern As String, options As FindOptions) As IEnumerable(Of SnapshotSpan)

Parameters

searchRange
SnapshotSpan

The range to search in.

startingPosition
SnapshotPoint

The location from which the search should be started.

searchPattern
String

The pattern to search for.

options
FindOptions

The options to use while performing the search operation.

Returns

An IEnumerable<T> containing all occurrences of the searchPattern.

Remarks

This method is safe to execute on any thread.

Applies to