Object Model Reference : Classes : P : Page : Methods : Page.GetSize |
Sub GetSize(Width As Double, Height As Double)
Member of Page
The GetSize method returns both the width and height of a page.
Parameter
|
Description
|
Width
|
Specifies the width of the page, measured in document units
|
Height
|
Specifies the height of a page, measured in document units
|
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 |
Copyright 2013 Corel Corporation. All rights reserved.