API Documentation > CorelDRAW > 2025-v26
DataItem class
Represents an object-data item associated with a shape that stores information about that shape
Syntax:
Class DataItem
Remarks:
The DataItem class represents an object-data item associated with a shape that stores information about that shape. 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
Application Gets the application to which the object belongs
DataField Gets DataField
FormattedValue Formatted Value
Parent Gets the parent of which this object is a child
Value Gets or sets the data item Value
Methods:
Name Description
Clear Clears the data item