API Documentation > CorelDRAW > 2025-v26 > Page > IVGPage
Page.GetSize method
Gets the size of the page
Syntax:
Sub GetSize(ByRef Width As Double, ByRef Height As Double)
Parameters:
Name Type Description
Width
Double
Height
Double
Remarks:
The GetSize method returns both the width and height of a page.
Examples:
The following VBA example creates a rectangle with the size of active page (that is, the page frame).
Sub Test()
Dim sx As Double, sy As Double
ActivePage.GetSize sx, sy
ActiveLayer.CreateRectangle2 0, 0, sx, sy 
End Sub