Back to Devexpress

PdfPage.GetPageIndex() Method

officefileapi-devexpress-dot-pdf-dot-pdfpage-db6c3b8f.md

latest2.2 KB
Original Source

PdfPage.GetPageIndex() Method

Returns the page index.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public int GetPageIndex()
vb
Public Function GetPageIndex As Integer

Returns

TypeDescription
Int32

The page index.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetPageIndex() method.

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-highlight-search-results/CS/HighlightSearchResults/Program.cs#L63

csharp
PdfDocumentFacade facade = processor.DocumentFacade;
PdfPageFacade page = facade.Pages[result.Page.GetPageIndex()];

pdf-document-api-highlight-search-results/VB/HighlightSearchResults/Program.vb#L54

vb
Dim facade As PdfDocumentFacade = processor.DocumentFacade
Dim page As PdfPageFacade = facade.Pages(result.Page.GetPageIndex())

See Also

PdfPage Class

PdfPage Members

DevExpress.Pdf Namespace