skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Migrate to .NET MAUI
  • Support and Learning

    • Support and Learning Hub
    • Release History
    • Docs
    • Demos
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Embedded Reporting
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Contact us

Class TextSearchWorker

Performs async text search in a Telerik.Windows.Documents.Fixed.Model.RadFixedDocument. The results will be displayed by the RadPdfViewer in the order they are provided.

Inheritance
System.Object
TextSearchWorker
Namespace: Telerik.XamarinForms.PdfViewer
Assembly: Telerik.XamarinForms.PdfViewer.dll

Syntax

public class TextSearchWorker : Object

Constructors

TextSearchWorker()

Declaration
public TextSearchWorker()

Methods

Search(SearchContext)

Performs text search in a thread different from the main UI thread. Override this method when in need to implement custom search logic. Take into consideration that because this does not run in the main thread, access to UI elements and properties may be limited. Use a statement with the TextDocument as the mutex (example lock(context.Document.TextDocument)) when accessing the Telerik.Windows.Documents.Fixed.Model.RadFixedDocument in order to avoid errors due to concurrent accessing. When creating a TextSearchResult only set the MainSearchResult if you want to override the currently displayed main search result.

Declaration
protected virtual TextSearchResult Search(SearchContext context)
Parameters
SearchContext context

Returns
TextSearchResult

SearchAsync(SearchContext)

Performs async text search. This method is executed on the main UI thread and returns a System.Threading.Tasks.Task in which the actual text search is performed.

Declaration
protected virtual Task<TextSearchResult> SearchAsync(SearchContext context)
Parameters
SearchContext context

Returns
System.Threading.Tasks.Task<TextSearchResult>

Sample Applications
  • Telerik Tagit
  • iOS Demo App
  • Android Demo App
Support Resources
  • iOS Wrappers
  • Android Wrappers
  • Xamarin.Forms SDK Examples
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.