Table of Contents

TXDataScalarProperty Class

Base class for the properties that hold a single scalar value, like a string or a number.

Syntax

Unit: XData.Model.Classes

TXDataScalarProperty = class(TXDataProperty);

Methods

Name Description
IsSimple Returns True, since scalar properties are always simple properties.

Properties

Name Description
DefaultValue Gets or sets the default value of the property.
HasDefaultValue Indicates whether the property has a default value defined in DefaultValue.
Length Gets or sets the maximum length of the property value, for string properties.
Precision Gets or sets the total number of digits of the property value, for numeric properties.
PropertyType Gets or sets the type of the property value.
Scale Gets or sets the number of digits after the decimal point of the property value, for numeric properties.
TypeRef Gets or sets the name of the property type, used when the model is written to or read from JSON.
UrlConverter Gets the converter used to convert values of the property to and from literals in URLs.