Share via


IFinder.TryFindForReplace Method

Definition

Overloads

TryFindForReplace(Span, String)

Try to find the first/last instance in the entire snapspshot. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

TryFindForReplace(Span, Span, String)

Try to find the first/last instance in searchRange. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

TryFindForReplace(Int32, Span, String)

Try to find the first/last instance after/before startingPosition in the entire snapshot. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

TryFindForReplace(Int32, Span, Span, String)

Try to find the first/last instance after/before startingPosition in searchRange. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

TryFindForReplace(Span, String)

Try to find the first/last instance in the entire snapspshot. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

public:
 bool TryFindForReplace([Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Span % result, [Runtime::InteropServices::Out] System::String ^ % expandedReplacePattern);
public bool TryFindForReplace (out Microsoft.VisualStudio.Text.Span result, out string expandedReplacePattern);
abstract member TryFindForReplace : Span * string -> bool
Public Function TryFindForReplace (ByRef result As Span, ByRef expandedReplacePattern As String) As Boolean

Parameters

result
Span
expandedReplacePattern
String

Returns

Applies to

TryFindForReplace(Span, Span, String)

Try to find the first/last instance in searchRange. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

public:
 bool TryFindForReplace(Microsoft::VisualStudio::Text::Span searchRange, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Span % result, [Runtime::InteropServices::Out] System::String ^ % expandedReplacePattern);
public bool TryFindForReplace (Microsoft.VisualStudio.Text.Span searchRange, out Microsoft.VisualStudio.Text.Span result, out string expandedReplacePattern);
abstract member TryFindForReplace : Microsoft.VisualStudio.Text.Span * Span * string -> bool
Public Function TryFindForReplace (searchRange As Span, ByRef result As Span, ByRef expandedReplacePattern As String) As Boolean

Parameters

searchRange
Span
result
Span
expandedReplacePattern
String

Returns

Applies to

TryFindForReplace(Int32, Span, String)

Try to find the first/last instance after/before startingPosition in the entire snapshot. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

public:
 bool TryFindForReplace(int startingPosition, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Span % result, [Runtime::InteropServices::Out] System::String ^ % expandedReplacePattern);
public bool TryFindForReplace (int startingPosition, out Microsoft.VisualStudio.Text.Span result, out string expandedReplacePattern);
abstract member TryFindForReplace : int * Span * string -> bool
Public Function TryFindForReplace (startingPosition As Integer, ByRef result As Span, ByRef expandedReplacePattern As String) As Boolean

Parameters

startingPosition
Int32
result
Span
expandedReplacePattern
String

Returns

Applies to

TryFindForReplace(Int32, Span, Span, String)

Try to find the first/last instance after/before startingPosition in searchRange. expandedReplacePattern is the text that should be used for the replacement (accounting for regex substitutions).

public:
 bool TryFindForReplace(int startingPosition, Microsoft::VisualStudio::Text::Span searchRange, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Span % result, [Runtime::InteropServices::Out] System::String ^ % expandedReplacePattern);
public bool TryFindForReplace (int startingPosition, Microsoft.VisualStudio.Text.Span searchRange, out Microsoft.VisualStudio.Text.Span result, out string expandedReplacePattern);
abstract member TryFindForReplace : int * Microsoft.VisualStudio.Text.Span * Span * string -> bool
Public Function TryFindForReplace (startingPosition As Integer, searchRange As Span, ByRef result As Span, ByRef expandedReplacePattern As String) As Boolean

Parameters

startingPosition
Int32
searchRange
Span
result
Span
expandedReplacePattern
String

Returns

Applies to