API Documentation > CorelDRAW > 2025-v26 > Properties > IVGProperties
Properties.DeleteByIndex method
Deletes a property by index
Syntax:
Sub DeleteByIndex(ByVal Index As Long)
Parameters:
Name Type Description
Index
Long
Remarks:
The DeleteByIndex method deletes a data item as specified by index number.
Examples:
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