RatingContextButton.Rating Property

Gets or sets the rating specified by the current item.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(0)]
public decimal Rating { get; set; }
<DXCategory("Behavior")>
<DefaultValue(0)>
Public Property Rating As Decimal

Property Value

Type Default Description
Decimal

0

A decimal value that specifies the content rating.

Remarks

Using the RatingContextButton control, an end-user can rate the content displayed by the owner control (e.g., ImageSlider, PictureEdit) using the grading scale. Read the Rating property to get the content rating specified by the current item. By default, the grading scale consists of five points. You can set the number of grading scale points using the RatingContextButton.ItemCount property.

By default, the rating can only be set to an integer value, but it is also possible to use half-integer and decimal values. See the RatingContextButton.FillPrecision property.

To specify glyphs that represent points in the normal, hovered and checked states, use the RatingContextButton.ImageOptions property.

See Also