O2S.Components.PDF4NET Documentation
SearchText(String,PDFTextSearchOptions,PDFContentExtractionContext) Method



O2S.Components.PDF4NET.Content Namespace > PDFContentExtractor Class > SearchText Method : SearchText(String,PDFTextSearchOptions,PDFContentExtractionContext) Method
Text to find in page content.
A set of options that specify how the text search should be performed.
Context for text extraction.
Searches the page content for the specified text.
Syntax
'Declaration
 
Public Overloads Function SearchText( _
   ByVal text As String, _
   ByVal searchOptions As PDFTextSearchOptions, _
   ByVal context As PDFContentExtractionContext _
) As PDFTextSearchResultCollection
'Usage
 
Dim instance As PDFContentExtractor
Dim text As String
Dim searchOptions As PDFTextSearchOptions
Dim context As PDFContentExtractionContext
Dim value As PDFTextSearchResultCollection
 
value = instance.SearchText(text, searchOptions, context)

Parameters

text
Text to find in page content.
searchOptions
A set of options that specify how the text search should be performed.
context
Context for text extraction.

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

PDFContentExtractor Class
PDFContentExtractor Members
Overload List