API Documentation > CorelDRAW > 2025-v26
DataField class
Represents an object-data field as defined in the Object Data Manager docker
Syntax:
Class DataField
Remarks:
The DataField class represents an object-data field as defined in the Object Data Manager docker. By default, CorelDRAW create 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 they cannot be edited or deleted.
Properties:
Name Description
AppDefault Gets or sets whether it is an application default
Application Gets the application to which the object belongs
Constraint Gets or sets the constraint string for data in this field
DataType Gets or sets the data type in this field
DefaultValue Gets or sets the default value for this field
DocDefault Gets or sets whether it is a Doc Default
ElementName Gets or sets the Element Name
FieldWidth Gets or sets the Field Width
Format Gets or sets the Format for the data field
FormatType Gets the Format Type
Index Gets Index
Name Gets or sets the data field Name
Parent Gets the parent of which this object is a child
ParentName Gets or sets the Parent Name
SummarizeGroup Gets or sets whether to Summarize Group
Target Gets or sets the target filter the data is designated for
Methods:
Name Description
Delete Deletes data field
Reorder Reorders at a new Index