ITextSearchService2::FindAll Method (SnapshotSpan, String^, FindOptions)
Visual Studio 2015
Searches for all occurrences of the given search pattern, using the given starting range and options.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
IEnumerable<SnapshotSpan>^ FindAll( SnapshotSpan searchRange, String^ searchPattern, FindOptions options )
Parameters
- searchRange
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
[in] The range of text to search in.
- searchPattern
-
Type:
System::String^
[in] The text pattern to search for.
- options
-
Type:
Microsoft.VisualStudio.Text.Operations::FindOptions
[in] Options to use for the search.
Return Value
Type: System.Collections.Generic::IEnumerable<SnapshotSpan>^Returns an enumeration of SnapshotSpan containing the matches if any matches were found; otherwise, returns null if no matches were found.
This method is safe to execute on any thread.
Show: