Previous Document Next Document

Object Model Reference : Classes : P : PageSizes : Methods : PageSizes.Add


PageSizes.Add

Function Add(Name As String, Width As Double, Height As Double) As PageSize

Description

Member of PageSizes

The Add method adds a custom page size to a collection.

Parameter
Description
Name
Specifies the name of the custom page size
Width
Specifies the width of the page
Height
Specifies the height of the page

VBA example

The following VBA example adds a new page size named Test Paper Size, which has a width of 5.5" and a height of 9.5".

Public Sub PageSizes_Add()
 Dim ps As PageSizes
 Dim d As Document
 Set d = CreateDocument
 Set ps = d.PageSizes
 ps.Add "Test Paper Size", 5.5, 9.5
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.