PdfDocument.FindText(String, Int32, Int32) Method
Searches for text within the specified page range in the PDF document.
Namespace: DevExpress.Docs.Pdf
Assembly: DevExpress.Docs.Pdf.v26.1.dll
Declaration
public IEnumerable<TextSearchInfo> FindText(
string text,
int startPageIndex = 0,
int endPageIndex = -1
)
Parameters
| Name | Type | Description |
|---|---|---|
| text | String | The text to search. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| startPageIndex | Int32 | 0 | The index of the first page to search. |
| endPageIndex | Int32 | -1 | The index of the last page to search. Use -1 to search to the end of the document. |
Returns
| Type | Description |
|---|---|
| IEnumerable<TextSearchInfo> | A collection that contains information about each occurrence of the specified text. |
See Also