Object Model Reference : Classes : P : Properties : Properties : Properties.ItemByIndex |
Property ItemByIndex(Index As Long) As Variant
Member of Properties
The ItemByIndex property returns the data item associated with a specified index number.
The ItemByIndex property returns a read-only value.
The following VBA example adds three data items to the documents 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 |
Copyright 2013 Corel Corporation. All rights reserved.