officefileapi-devexpress-dot-pdf-dot-pdftextsearchresults-8660209f.md
Provides access to the page containing the text found.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public PdfPage Page { get; }
Public ReadOnly Property Page As PdfPage
| Type | Description |
|---|---|
| PdfPage |
A PdfPage object.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Page property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-bookmark-search-results-in-document/CS/Destination/Program.cs#L32
if (results.Status == PdfTextSearchStatus.Found) {
PdfXYZDestination destination = new PdfXYZDestination(results.Page, 0, results.Rectangles[0].Top, null);
pdf-document-api-highlight-search-results/CS/HighlightSearchResults/Program.cs#L55
}
graphics.AddToPageForeground(result.Page);
}
pdf-document-api-bookmark-search-results-in-document/VB/Destination/Program.vb#L27
If results.Status = DevExpress.Pdf.PdfTextSearchStatus.Found Then
Dim destination As DevExpress.Pdf.PdfXYZDestination = New DevExpress.Pdf.PdfXYZDestination(results.Page, 0, results.Rectangles(CInt((0))).Top, Nothing)
' Create a bookmark with the search word shown as title and the destination.
pdf-document-api-highlight-search-results/VB/HighlightSearchResults/Program.vb#L47
Next
graphics.AddToPageForeground(result.Page)
End Using
See Also