PDFView4NET WinForms Edition


O2S.Components.PDFView4NET Namespace > PDFRectangle Class > PDFRectangle Constructor : PDFRectangle Constructor(PDFPoint,PDFPoint)
First corner of the rectangle.
Second corner of the rectangle.
PDFRectangle Constructor(PDFPoint,PDFPoint)
Initializes a new PDFRectangle object from 2 PDFPoint objects, representing 2 opposite corners of the rectangle.
Syntax
'Declaration
 
Public Function New( _
   ByVal pt1 As PDFPoint, _
   ByVal pt2 As PDFPoint _
)
'Usage
 
Dim pt1 As PDFPoint
Dim pt2 As PDFPoint
 
Dim instance As New PDFRectangle(pt1, pt2)
public PDFRectangle( 
   PDFPoint pt1,
   PDFPoint pt2
)

Parameters

pt1
First corner of the rectangle.
pt2
Second corner of the rectangle.
Requirements

Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also