EnsurePageVisible(Int32) Method
Displays the specified page.
Syntax
'Declaration Public Overloads Sub EnsurePageVisible( _ ByVal pageNumber As Integer _ )
'Usage Dim instance As PDFPageView Dim pageNumber As Integer instance.EnsurePageVisible(pageNumber)
public void EnsurePageVisible( int pageNumber )
Parameters
- pageNumber
- The page to display.
Exceptions
| Exception | Description |
|---|---|
| Thrown if pageNumber is less than 0 or greater than or equal to the number of pages in the document. |
Remarks
The top margin of the page is displayed at the top of the viewer control, if applicable.
Requirements
Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also