O2S.Components.PDF4NET.View.Win Documentation
SearchText(String,PDFVisualSearchRange,PDFVisualTextSearchOptions,Boolean) Method



O2S.Components.PDF4NET.View.Content Namespace > PDFVisualContentLocator Class > SearchText Method : SearchText(String,PDFVisualSearchRange,PDFVisualTextSearchOptions,Boolean) Method
Text to find in page content.
The range for searching text
A set of options that specify how the text search should be performed.
True if the search results should be highlighted one by one in the O2S.Components.PDF4NET.View.PDFDocumentView control, false if all search results are highlighted together.
Searches the page content for the specified text.
Syntax
'Declaration
 
Public Overloads Function SearchText( _
   ByVal text As String, _
   ByVal searchRange As PDFVisualSearchRange, _
   ByVal searchOptions As PDFVisualTextSearchOptions, _
   ByVal incrementalHighlight As Boolean _
) As PDFVisualTextSearchResultCollection
'Usage
 
Dim instance As PDFVisualContentLocator
Dim text As String
Dim searchRange As PDFVisualSearchRange
Dim searchOptions As PDFVisualTextSearchOptions
Dim incrementalHighlight As Boolean
Dim value As PDFVisualTextSearchResultCollection
 
value = instance.SearchText(text, searchRange, searchOptions, incrementalHighlight)

Parameters

text
Text to find in page content.
searchRange
The range for searching text
searchOptions
A set of options that specify how the text search should be performed.
incrementalHighlight
True if the search results should be highlighted one by one in the O2S.Components.PDF4NET.View.PDFDocumentView control, false if all search results are highlighted together.

Return Value

A collection of zero or more search results.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PDFVisualContentLocator Class
PDFVisualContentLocator Members
Overload List
PDFDocumentView Class