Previous Document Next Document

Object Model Reference : Classes : P : PageSizes : Properties : PageSizes.Item


PageSizes.Item

Property Item(IndexOrName As Variant) As PageSize

Description

Member of PageSizes

The Item property returns a specified PageSize object. It is the default property of the PageSizes class.

The Item property returns a read-only value.

Parameter
Description
IndexOrName
Specifies the page size by its index number or name
 
Index — Specifies the preset placeholder that uniquely identifies each member of the PageSizes collection
 
Name — Specifies the string that uniquely identifies each page size

VBA example

The following VBA example displays the name of the second page size in the PageSizes collection:

Sub Test()
 MsgBox ActiveDocument.PageSizes(2).Name
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.