Skip to main content

TcxSpinButtonProperties.ValueType Property

Specifies the type of the spin edit value.

Declaration

property ValueType; default vtInt;

Property Value

Type Default
TcxSpinEditValueType vtInt

Remarks

The ValueType property determines the type of value which a spin editor contains. Two types are valid: integer and double. Setting the ValueType property to one of these types automatically changes the type of the variant Value property. This property specifies a value which the spin editor contains.

The ValueType affects the incrementing procedure when a user clicks the spin buttons or presses the Up and Down keys (a user must press Ctrl-Up and Ctrl-Down keys if the UseCtrlIncrement property is set to True). The spin edit value is incremented or decremented by the amount defined by the Increment property. If ValueType is set to vtInt, then the increment value is rounded to the nearest integer number first and then added to/subtracted from Value.

The default value of the ValueType property is vtInt.

See Also