API Documentation > CorelDRAW > 2025-v26
DataItems class
Represents a collection of all object-data fields (or DataItem objects) associated with a shape
Syntax:
Class DataItems
Remarks:
The DataItems class represents a collection of all object-data fields (or DataItem objects) associated with a shape. A data item stores information about a shape object within the CorelDRAW development environment. By customizing a data item, you are customizing information about an object within CorelDRAW. By default, CorelDRAW creates four data fields: Name, Cost, Comments, and CDRStaticID. The Cost and Comments fields are for your convenience and can be edited or deleted as required. The Name and CDRStaticID fields are used by CorelDRAW to identify objects and cannot be edited or deleted.
Properties:
Name Description
_NewEnum Returns an enumerator that iterates through a collection
Application Gets the application to which the object belongs
Count Gets the number of items in the collection of data items
Item Gets a reference to a specified data item, in base 1
Parent Gets the parent of which this object is a child
Methods:
Name Description
Add Adds a field
Clear Clears DataItem collection
CopyFrom Copies DataItems from a Shape