Previous Document Next Document

Object Model Reference : Classes : P : Page : Methods : Page.GetSize


Page.GetSize

Sub GetSize(Width As Double, Height As Double)

Description

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

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.