PDFView4NET WinForms Edition
ConvertPDFRectangleToScreenRectangle(Int32,PDFRectangle) Method




O2S.Components.PDFView4NET Namespace > PDFPageView Class > ConvertPDFRectangleToScreenRectangle Method : ConvertPDFRectangleToScreenRectangle(Int32,PDFRectangle) Method
The number of the page to which the PDF rectangle is relative.
The rectangle in the document to convert.
Converts a rectangle in the document to a rectangle on the screen.
Syntax
'Declaration
 
Public Overloads Function ConvertPDFRectangleToScreenRectangle( _
   ByVal pageNumber As Integer, _
   ByVal pdfRectangle As PDFRectangle _
) As Rectangle
'Usage
 
Dim instance As PDFPageView
Dim pageNumber As Integer
Dim pdfRectangle As PDFRectangle
Dim value As Rectangle
 
value = instance.ConvertPDFRectangleToScreenRectangle(pageNumber, pdfRectangle)
public Rectangle ConvertPDFRectangleToScreenRectangle( 
   int pageNumber,
   PDFRectangle pdfRectangle
)
public: Rectangle ConvertPDFRectangleToScreenRectangle( 
   int pageNumber,
   PDFRectangle* pdfRectangle
) 
public:
Rectangle ConvertPDFRectangleToScreenRectangle( 
   int pageNumber,
   PDFRectangle^ pdfRectangle
) 

Parameters

pageNumber
The number of the page to which the PDF rectangle is relative.
pdfRectangle
The rectangle in the document to convert.

Return Value

The converted rectangle in screen coordinates.
Remarks
This method converts a document rectangle from points to screen pixels. The source rectangle is relative to PDF's default coordinate system, which has the origin in the lower left corner of the page. The screen rectangle is relative to control's display area.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFPageView Class
PDFPageView Members
Overload List