Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomRatingControl.Rating Property

Specifies the rating value visualized by the rating control.

#Declaration

Delphi
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