Back to Devexpress

PdfViewer.ContinueSearchFrom Property

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-5b7dfff6.md

latest2.5 KB
Original Source

PdfViewer.ContinueSearchFrom Property

Gets or sets where the PDF Viewer continues its search after you scroll a document.

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
[Browsable(false)]
public PdfContinueSearchFrom ContinueSearchFrom { get; set; }
vb
<Browsable(False)>
Public Property ContinueSearchFrom As PdfContinueSearchFrom

Property Value

TypeDescription
PdfContinueSearchFrom

A PdfContinueSearchFrom enumeration value. The default is CurrentPage.

|

Available values:

NameDescription
LastSearchResult

The PDF Viewer continues its search from its last search result.

| | CurrentPage |

The PDF Viewer continues its search from the current page.

|

Remarks

The following code snippet shows how to scroll your document to a specific page and continue your search from this page.

csharp
// Specify that your search should always continue from the current page.
pdfViewer1.ContinueSearchFrom = DevExpress.XtraPdfViewer.PdfContinueSearchFrom.CurrentPage;

// Start your search.
pdfViewer1.FindText("text");

// Process the search results.
// ...

// Change the current page.
pdfViewer1.CurrentPageNumber = 100;

// Continue your search.
pdfViewer1.FindText("text");
vb
' Specify that your search should always continue from the current page.
pdfViewer1.ContinueSearchFrom = DevExpress.XtraPdfViewer.PdfContinueSearchFrom.CurrentPage

' Start your search.
pdfViewer1.FindText("text")

' Process the search results.
' ...

' Change the current page.
pdfViewer1.CurrentPageNumber = 100

' Continue your search.
pdfViewer1.FindText("text")

See Also

FindText

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace