Version

Find Method

Finds an instance of text in the span that matches the search criteria.
Syntax
'Declaration
 
Public Function Find( _
   ByVal criteria As TextSearchCriteria, _
   ByVal startOffset As Integer, _
   Optional ByVal wrapIfNotFound As Boolean, _
   Optional ByVal spanToSearch As Nullable(Of TextSpan) _
) As TextSearchResultInfo

Parameters

criteria
The search criteria
startOffset
The start offset relative to the beginning of the document.
wrapIfNotFound
if true continue the search by wrapping if the end is reached without a match.
spanToSearch
An optional span to limit the search to.

Return Value

A TextSearchResultInfo object containing the results of the operation.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also