PDFView4NET WPF Edition
ConvertDisplayRectangleToScreenRectangle Method




O2S.Components.PDFView4NET.WPF Namespace > PDFPageView Class : ConvertDisplayRectangleToScreenRectangle Method
The rectangle on the PDF page to convert.
Converts a display rectangle on the PDF page to a rectangle on the screen.
Syntax
'Declaration
 
Public Function ConvertDisplayRectangleToScreenRectangle( _
   ByVal displayRectangle As DisplayRectangle _
) As Rectangle
'Usage
 
Dim instance As PDFPageView
Dim displayRectangle As DisplayRectangle
Dim value As Rectangle
 
value = instance.ConvertDisplayRectangleToScreenRectangle(displayRectangle)
public Rectangle ConvertDisplayRectangleToScreenRectangle( 
   DisplayRectangle displayRectangle
)
public: Rectangle* ConvertDisplayRectangleToScreenRectangle( 
   DisplayRectangle* displayRectangle
) 
public:
Rectangle^ ConvertDisplayRectangleToScreenRectangle( 
   DisplayRectangle^ displayRectangle
) 

Parameters

displayRectangle
The rectangle on the PDF page to convert.

Return Value

The converted rectangle in screen coordinates.
Remarks
This method converts a PDF rectangle from points to screen pixels. The source rectangle is relative to top left corner of the visible 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