Represents an object which configures the search functionality in RadPdfViewer.
Definition
Namespace:Telerik.Maui.Controls.PdfViewer
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class PdfViewerSearchSettings : StyleableElement
Inheritance: objectPdfViewerSearchSettings
Constructors
public PdfViewerSearchSettings()
Fields
IsBusyProperty
BindableProperty
Identifies the IsBusy property.
public static readonly BindableProperty IsBusyProperty
MainSearchResultFillProperty
BindableProperty
Identifies the MainSearchResultFill property.
public static readonly BindableProperty MainSearchResultFillProperty
SearchOptionsProperty
BindableProperty
Identifies the SearchOptions property.
public static readonly BindableProperty SearchOptionsProperty
SearchResultsFillProperty
BindableProperty
Identifies the SearchResultsFill property.
public static readonly BindableProperty SearchResultsFillProperty
SearchResultsStringFormatProperty
BindableProperty
Identifies the SearchResultsStringFormat property.
public static readonly BindableProperty SearchResultsStringFormatProperty
TextProperty
BindableProperty
Identifies the Text property.
public static readonly BindableProperty TextProperty
TextSearchResultProperty
BindableProperty
Identifies the TextSearchResult property.
public static readonly BindableProperty TextSearchResultProperty
TextSearchTriggerProperty
BindableProperty
Identifies the TextSearchTrigger property.
public static readonly BindableProperty TextSearchTriggerProperty
TextSearchWorkerProperty
BindableProperty
Identifies the TextSearchWorker property.
public static readonly BindableProperty TextSearchWorkerProperty
Properties
Gets a value indicating whether or not a search operation is in progress.
public bool IsBusy { get; }
MainSearchResultFill
Color
Gets or sets the fill of the main search result.
public Color MainSearchResultFill { get; set; }
Gets the RadPdfViewer control these settings are associated with.
public RadPdfViewer PdfViewer { get; }
Gets the text for the search entry PdfViewerSearchEntryToolbarItem.
public string SearchEntryToolbarItemText { get; }
SearchOptions
TextSearchOptions
Gets or sets the TextSearchOptions used to perform the search.
public TextSearchOptions SearchOptions { get; set; }
SearchResultsFill
Color
Gets or sets the fill of all search results, except the main result.
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.
public string SearchResultsStringFormat { get; set; }
Gets the text for the search results LabelToolbarItem.
public string SearchResultsToolbarItemText { get; }
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.
public PdfViewerTextSearchResult TextSearchResult { get; }
Gets or sets a value, indicating how search will be triggered in RadPdfViewer.
public PdfViewerSearchTrigger TextSearchTrigger { get; set; }
The object that performs the text search and notifies for the search progress changes.
public PdfViewerTextSearchWorker TextSearchWorker { get; set; }
Methods
Cancels the search operation.
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.
public virtual PdfViewerSearchToastInfo GetToastInfoForToolbarItem()
protected override void OnPropertyChanged(string propertyName = null)
Starts an async search operation with the provided text and options. For finer control use the TextSearchWorker property.
public void SearchAsync(string text, TextSearchOptions searchOptions = null)