Previous Document Next Document

Object Model Reference : Classes : P : Properties : Methods : Properties.DeleteByIndex


Properties.DeleteByIndex

Sub DeleteByIndex(Index As Long)

Description

Member of Properties

The DeleteByIndex method deletes a data item as specified by index number.

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 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.