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 searchPattern and calculates all the corresponding replacement results for every match according to the replacePattern.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Function FindAllForReplace ( _
searchRange As SnapshotSpan, _
searchPattern As String, _
replacePattern As String, _
options As FindOptions _
) As IEnumerable(Of Tuple(Of SnapshotSpan, String))
IEnumerable<Tuple<SnapshotSpan, string>> FindAllForReplace(
SnapshotSpan searchRange,
string searchPattern,
string replacePattern,
FindOptions options
)
IEnumerable<Tuple<SnapshotSpan, String^>^>^ FindAllForReplace(
SnapshotSpan searchRange,
String^ searchPattern,
String^ replacePattern,
FindOptions options
)
abstract FindAllForReplace :
searchRange:SnapshotSpan *
searchPattern:string *
replacePattern:string *
options:FindOptions -> IEnumerable<Tuple<SnapshotSpan, string>>
function FindAllForReplace(
searchRange : SnapshotSpan,
searchPattern : String,
replacePattern : String,
options : FindOptions
) : IEnumerable<Tuple<SnapshotSpan, String>>
Parameters
searchRange
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe range of text to search in.
searchPattern
Type: StringThe pattern to search for.
replacePattern
Type: StringThe replace pattern to use for the operation.
options
Type: Microsoft.VisualStudio.Text.Operations.FindOptionsThe options to use while performing the search operation.
Return Value
Type: IEnumerable<Tuple<SnapshotSpan, String>>
An T[:System.Collections.Generic.IEnumerable`1] containing all matches found and their corresponding replacement values.
Remarks
The returned IEnumerable will contain a collection of tuples indicating all the matches. Each Tuple will contain a SnapshotSpan referencing the location of the match and a String containing the calculated replacement text for the match.
.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.