Back to Devexpress

TdxRangeControlCustomNumericClientProperties.RangeValueType Property

vcl-dxrangecontrol-dot-tdxrangecontrolcustomnumericclientproperties.md

latest3.0 KB
Original Source

TdxRangeControlCustomNumericClientProperties.RangeValueType Property

Specifies the actual value type employed by the range control‘s numeric value selection and visualization model.

Declaration

delphi
property RangeValueType: Word read; write; default varInteger;

Property Value

TypeDefault
WordvarInteger

Remarks

You can use this property to specify a hexadecimal code corresponding to the required numeric type to which the range control’s SelectedRangeMinValue, SelectedRangeMaxValue, VisibleRangeMinValue, and VisibleRangeMaxValue property values are internally converted. The range control’s numeric value selection and visualization model supports the following variant type codes:

Value (Constant Name)Hexadecimal CodeActual Numeric Type
varByte$0011Byte
varDouble$0005Double in Delphi; double in C++Builder (a double-precision (64-bit) floating point value).
varCurrency$0006Currency (a currency floating-point value).
varInt64$0014Int64 in Delphi; __int64 in C++Builder (a 64-bit signed integer value).
varInteger$0003Integer in Delphi; the int in C++Builder (a 32-bit signed integer value).
varLongWord$0013LongWord in Delphi; unsigned long in C++Builder.
varSingle$0004Single in Delphi; float in C++Builder (a single-precision (32-bit) floating point value).
varShortInt$0010ShortInt in Delphi; signed char in C++Builder.
varSmallInt$0002SmallInt in Delphi; short in C++Builder (a signed 16-bit integer value).
varWord$0012Word (an unsigned 16-bit value).

If the specified variant type constant name or hexadecimal code is not on the supported list, the RangeValueType property value does not change. To identify if the numeric value selection and visualization model supports a specific variant type, you can call the IsRangeValueTypeSupported function.

The default value of the RangeValueType property is varInteger.

See Also

TdxRangeControlCustomNumericClientProperties Class

TdxRangeControlCustomNumericClientProperties Members

dxRangeControl Unit