Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Searches for all occurrences of the given search pattern, using the given search range, starting position and options.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Function FindAll ( _
searchRange As SnapshotSpan, _
startingPosition As SnapshotPoint, _
searchPattern As String, _
options As FindOptions _
) As IEnumerable(Of SnapshotSpan)
IEnumerable<SnapshotSpan> FindAll(
SnapshotSpan searchRange,
SnapshotPoint startingPosition,
string searchPattern,
FindOptions options
)
IEnumerable<SnapshotSpan>^ FindAll(
SnapshotSpan searchRange,
SnapshotPoint startingPosition,
String^ searchPattern,
FindOptions options
)
abstract FindAll :
searchRange:SnapshotSpan *
startingPosition:SnapshotPoint *
searchPattern:string *
options:FindOptions -> IEnumerable<SnapshotSpan>
function FindAll(
searchRange : SnapshotSpan,
startingPosition : SnapshotPoint,
searchPattern : String,
options : FindOptions
) : IEnumerable<SnapshotSpan>
Parameters
searchRange
Type: Microsoft.VisualStudio.Text.SnapshotSpan[in] The range of text to search in.
startingPosition
Type: Microsoft.VisualStudio.Text.SnapshotPoint[in] The position from which to begin the search.
searchPattern
Type: 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: IEnumerable<SnapshotSpan>
Returns an enumeration of SnapshotSpan containing the matches if any matches were found; otherwise, returns nulla null reference (Nothing in Visual Basic) if no matches were found.
Remarks
This method is safe to execute on any thread.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.