Skip to main content

TcxCustomEditProperties.RestoreDefaults Method

Restores a set of properties, which are dependent on field settings for data-aware editors, to their default values.

Declaration

procedure RestoreDefaults; virtual;

Remarks

Some editor properties can have default values. Non data-aware editors specify default values for such properties themselves. Data-aware editors retrieve default values for these properties from the associated field in the dataset. These are properties such as Alignment and ReadOnly. Descendants of TcxCustomEditProperties may introduce another properties whose values are determined by a dataset. A user can override default values by assigning specific values explicitly.

For instance, data-aware editors have default values for the Alignment and ReadOnly properties. Default values are determined by TField.Alignment and TField.CanModify respectively.

The RestoreDefaults method restores the default property values after they have been assigned.

See Also