IFinder.TryFind Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
TryFind(Int32, Span) |
Try to find the first/last instance after/before |
TryFind(Int32, Span, Span) |
Try to find the first/last instance after/before |
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