Object Model Reference : Classes : P : Properties : Methods : Properties.DeleteByIndex |
Sub DeleteByIndex(Index As Long)
Member of Properties
The DeleteByIndex method deletes a data item as specified by index number.
The following VBA example adds three data items to the documents property collection and then removes the second data item.
Sub Test() |
Dim p As Properties |
Set p = ActiveDocument.Properties |
p.Item("Application", 1) = "CorelDRAW" |
p.Item("Application", 2) = "Corel PHOTO-PAINT" |
p.Item("Application", 3) = "R.A.V.E" |
p.DeleteByIndex (2) ' Remove the second data item - "Corel PHOTO-PAINT." |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.