Skip to main content

TdxCustomRatingControl.Rating Property

Specifies the rating value visualized by the rating control.

Declaration

property Rating: Double read; write;

Property Value

Type
Double

Remarks

The rating value ranges from 0 to Properties.ItemCount based on a count of checked elements (stars) displayed by the rating control. To change the rating value, end-users can switch the checked state of the elements either by clicking them or by pressing the arrow keys. When any of these methods are used, the Properties.OnChange event is raised. Thus, you can provide a proper response to changing the rating value. To do so, you will need to obtain the currently displayed rating value and this is available via the Rating property.

The amount by which the rating value is increased or decreased is determined by the Properties.Step and Properties.FillPrecision properties.

The default value of the Rating property is 0.

See Also