Share via


IFinder.TryFind Method

Definition

Overloads

TryFind(Span)

Try to find the first/last instance in the entire snapspshot.

TryFind(Span, Span)

Try to find the first/last instance in searchRange.

TryFind(Int32, Span)

Try to find the first/last instance after/before startingPosition in the entire snapshot.

TryFind(Int32, Span, Span)

Try to find the first/last instance after/before startingPosition in searchRange.

TryFind(Span)

Try to find the first/last instance in the entire snapspshot.

public:
 bool TryFind([Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Span % result);
public bool TryFind (out Microsoft.VisualStudio.Text.Span result);
abstract member TryFind : Span -> bool
Public Function TryFind (ByRef result As Span) As Boolean

Parameters

result
Span

Returns

Applies to

TryFind(Span, Span)

Try to find the first/last instance in searchRange.

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

Parameters

searchRange
Span
result
Span

Returns

Applies to

TryFind(Int32, Span)

Try to find the first/last instance after/before startingPosition in the entire snapshot.

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

Parameters

startingPosition
Int32
result
Span

Returns

Applies to

TryFind(Int32, Span, Span)

Try to find the first/last instance after/before startingPosition in searchRange.

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

Parameters

startingPosition
Int32
searchRange
Span
result
Span

Returns

Applies to