windowsforms-devexpress-dot-utils-dot-ratingcontextbutton-4fa1c9fe.md
Gets or sets the rating specified by the current item.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[DefaultValue(0)]
[DXCategory("Behavior")]
public decimal Rating { get; set; }
<DXCategory("Behavior")>
<DefaultValue(0)>
Public Property Rating As Decimal
| Type | Default | Description |
|---|---|---|
| Decimal | 0 |
A decimal value that specifies the content rating.
|
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.ImageOptionsCollection property.
See Also