PDFView4NET WinForms Edition
ConvertScreenRectangleToPDFRectangle(Int32,Rectangle) Method




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

Parameters

pageNumber
The number of the page to which the PDF point is relative.
screenRect
The rectangle on the screen to convert.

Return Value

The converted rectangle in default PDF coordinates.
Remarks
This method converts a screen rectangle from pixels to PDF points. The screen rectangle is relative to control's display area. The converted rectangle is relative to PDF's default coordinate system, which has the origin in the lower left corner of the page.
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