PDFView4NET WinForms Edition
ConvertScreenRectangleToPDFRectangle(Rectangle) Method




O2S.Components.PDFView4NET Namespace > PDFPageView Class > ConvertScreenRectangleToPDFRectangle Method : ConvertScreenRectangleToPDFRectangle(Rectangle) Method
The rectangle on the screen to convert.
Converts a rectangle on the screen to a page relative rectangle.
Syntax
'Declaration
 
Public Overloads Function ConvertScreenRectangleToPDFRectangle( _
   ByVal screenRectangle As Rectangle _
) As PDFRectangle
'Usage
 
Dim instance As PDFPageView
Dim screenRectangle As Rectangle
Dim value As PDFRectangle
 
value = instance.ConvertScreenRectangleToPDFRectangle(screenRectangle)
public PDFRectangle ConvertScreenRectangleToPDFRectangle( 
   Rectangle screenRectangle
)
public: PDFRectangle* ConvertScreenRectangleToPDFRectangle( 
   Rectangle screenRectangle
) 
public:
PDFRectangle^ ConvertScreenRectangleToPDFRectangle( 
   Rectangle screenRectangle
) 

Parameters

screenRectangle
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