New to Telerik UI for .NET MAUI? Start a free 30-day trial

Represents an object which configures the search functionality in RadPdfViewer.

Definition

Namespace:Telerik.Maui.Controls.PdfViewer

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class PdfViewerSearchSettings : StyleableElement

Inheritance: objectPdfViewerSearchSettings

Constructors

C#
public PdfViewerSearchSettings()

Fields

IsBusyProperty

BindableProperty

Identifies the IsBusy property.

C#
public static readonly BindableProperty IsBusyProperty

Identifies the MainSearchResultFill property.

C#
public static readonly BindableProperty MainSearchResultFillProperty

SearchOptionsProperty

BindableProperty

Identifies the SearchOptions property.

C#
public static readonly BindableProperty SearchOptionsProperty

Identifies the SearchResultsFill property.

C#
public static readonly BindableProperty SearchResultsFillProperty

Identifies the SearchResultsStringFormat property.

C#
public static readonly BindableProperty SearchResultsStringFormatProperty

TextProperty

BindableProperty

Identifies the Text property.

C#
public static readonly BindableProperty TextProperty

TextSearchResultProperty

BindableProperty

Identifies the TextSearchResult property.

C#
public static readonly BindableProperty TextSearchResultProperty

Identifies the TextSearchTrigger property.

C#
public static readonly BindableProperty TextSearchTriggerProperty

TextSearchWorkerProperty

BindableProperty

Identifies the TextSearchWorker property.

C#
public static readonly BindableProperty TextSearchWorkerProperty

Properties

Gets a value indicating whether or not a search operation is in progress.

C#
public bool IsBusy { get; }

Gets or sets the fill of the main search result.

C#
public Color MainSearchResultFill { get; set; }

Gets the RadPdfViewer control these settings are associated with.

C#
public RadPdfViewer PdfViewer { get; }

Gets the text for the search entry PdfViewerSearchEntryToolbarItem.

C#
public string SearchEntryToolbarItemText { get; }

SearchOptions

TextSearchOptions

Gets or sets the TextSearchOptions used to perform the search.

C#
public TextSearchOptions SearchOptions { get; set; }

Gets or sets the fill of all search results, except the main result.

C#
public Color SearchResultsFill { get; set; }

The string format used to display search results in PdfViewerSearchContentView. The default value is "{0}{1}{2}" which results in strings like '1 of 5', where

  • '1' means the first result is currently selected
  • ' of ' is a localizable string
  • '5' is the total number of search results.
C#
public string SearchResultsStringFormat { get; set; }

Gets the text for the search results LabelToolbarItem.

C#
public string SearchResultsToolbarItemText { get; }

Gets or sets the text to search for.

C#
public string Text { get; set; }

Gets a value representing the current search result. This property contains all the results that are found and the main result. The value of this property is null when no search was performed. The value of this property is NotFound when no results are found.

C#
public PdfViewerTextSearchResult TextSearchResult { get; }

Gets or sets a value, indicating how search will be triggered in RadPdfViewer.

C#
public PdfViewerSearchTrigger TextSearchTrigger { get; set; }

The object that performs the text search and notifies for the search progress changes.

C#
public PdfViewerTextSearchWorker TextSearchWorker { get; set; }

Methods

Cancels the search operation.

C#
public void CancelSearch()

Override this method to customize the text in the notification toast based on the search state. This means to take into consideration things like the current TextSearchResult, the last searched Text, whether or not searching is in progress (IsBusy), and other information from the RadPdfViewer and the PdfViewerSearchSettings.

C#
public virtual PdfViewerSearchToastInfo GetToastInfoForToolbarItem()
Returns:

PdfViewerSearchToastInfo

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

Starts an async search operation with the provided text and options. For finer control use the TextSearchWorker property.

C#
public void SearchAsync(string text, TextSearchOptions searchOptions = null)
Parameters:textstringsearchOptionsTextSearchOptions