Back to Devexpress

PdfTextSearchResults.Page Property

officefileapi-devexpress-dot-pdf-dot-pdftextsearchresults-8660209f.md

latest3.1 KB
Original Source

PdfTextSearchResults.Page Property

Provides access to the page containing the text found.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public PdfPage Page { get; }
vb
Public ReadOnly Property Page As PdfPage

Property Value

TypeDescription
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

csharp
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

csharp
}
    graphics.AddToPageForeground(result.Page);
}

pdf-document-api-bookmark-search-results-in-document/VB/Destination/Program.vb#L27

vb
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

vb
Next
    graphics.AddToPageForeground(result.Page)
End Using

See Also

PdfTextSearchResults Class

PdfTextSearchResults Members

DevExpress.Pdf Namespace