API Documentation
>
CorelDRAW
>
2025-v26
>
DataItem
>
IVGDataItem
DataItem.Clear method
Clears the data item
Syntax:
Sub
Clear
(
)
Remarks:
The
Clear
method removes the data by assigning an empty value to the field. The
Name
and
CDRStaticID
fields are read-only and cannot be modified.
Examples:
The following VBA example clears all data assigned to the currently selected shape.
Sub Test() Dim di As DataItem For Each di In ActiveShape.ObjectData di.Clear Next di End Sub