Share via


PdfRenderer.Page.SearchText(String) Method

Definition

Search for the given string on the page and returns the bounds of all the matches.

[Android.Runtime.Register("searchText", "(Ljava/lang/String;)Ljava/util/List;", "", ApiSince=35)]
public System.Collections.Generic.IList<Android.Graphics.Pdf.Models.PageMatchBounds> SearchText (string query);
[<Android.Runtime.Register("searchText", "(Ljava/lang/String;)Ljava/util/List;", "", ApiSince=35)>]
member this.SearchText : string -> System.Collections.Generic.IList<Android.Graphics.Pdf.Models.PageMatchBounds>

Parameters

query
String

plain search string for querying the document

Returns

List of PageMatchBounds representing the bounds of each match on the page.

Attributes

Remarks

Search for the given string on the page and returns the bounds of all the matches. The list will be empty if there are no matches on the page. If this function was invoked previously for any page, it will wait for that operation to complete before this operation is started.

<strong>Note:</strong> Should be invoked on the android.annotation.WorkerThread as it is long-running task.

Java documentation for android.graphics.pdf.PdfRenderer.Page.searchText(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to