Previous Document Next Document

Object Model Reference : Classes : P : Properties : Properties : Properties.ItemByIndex


Properties.ItemByIndex

Property ItemByIndex(Index As Long) As Variant

Description

Member of Properties

The ItemByIndex property returns the data item associated with a specified index number.

The ItemByIndex property returns a read-only value.

Parameter
Description
Index
Specifies the data item by its index number

VBA example

The following VBA example adds three data items to the document’s property collection and displays the second data item.

Sub Test()
 Dim p As Properties
 Set p = ActiveDocument.Properties
 p.Item("Item", 1) = "Draw"
 p.Item("Item", 2) = "PhotoPaint"
 p.Item("Item", 3) = "R.A.V.E"
 MsgBox p.ItemByIndex(2)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.