Skip to main content

TcxObjectValueType Class

Implements functionality related to the object type in DevExpress data controllers and other data-related APIs.

Declaration

TcxObjectValueType = class(
    TcxLargeIntValueType
)

Remarks

You can use object values to store non-visual objects (TObject descendant instances) with arbitrary data for an unbound editor or container control item.

An underlying value of the object type is a pointer to an object. The pointer size depends on the target platform – if an application is built with a 64-bit compiler, the pointer is a 64-bit integer value; otherwise, the pointer is a 32-bit integer value.

Important

Use this type only in custom or inherited components because DevExpress and standard VCL components have no information on actual content of object values. Do not store visual objects (controls) in object values because they can raise an exception when a form with these visual objects is destroyed.

Main API Members

The TcxObjectValueType class does not introduce new public API members but changes behavior of the following public API members declared in the TcxValueType class:

API Member Change Description
Caption Returns 'Object'.
GetVarType Returns varInt64 when an application is built with a 64-bit compiler; otherwise, varInteger.
IsNumeric Returns True because a pointer is a 32 or 64-bit integer depending on the target platform.
IsManaged Returns True.

The TcxValueTypeClass type references the TcxObjectValueType class.

Inheritance

See Also