Skip to main content
A newer version of this page is available. .

RepositoryItemRatingControl.FillPrecision Property

Gets or sets whether partly checked glyphs are enabled.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(RatingItemFillPrecision.Full)]
public RatingItemFillPrecision FillPrecision { get; set; }

Property Value

Type Default Description
DevExpress.XtraEditors.RatingItemFillPrecision **Full**

A value that specifies the rating precision.

Remarks

The FillPrecision property specifies how end-users can set the rating using the mouse pointer, and how glyphs (RepositoryItemRatingControl.Glyph, RepositoryItemRatingControl.HoverGlyph and RepositoryItemRatingControl.CheckedGlyph) are checked. The RepositoryItemRatingControl class supports three precision types:

  • Full - The rating can only be set to an integer value. Clicking anywhere within an icon checks the icon in its entirety.
  • Half - The rating can be set to integer and half-integer values (0, 0.5, 1, 1.5, etc.). An icon can be checked in its entirety as well as half-checked.
  • Exact - The rating is set to a decimal value based on the exact position of the mouse cursor over an icon. An icon is checked up to the position where it was clicked. For instance, the following figure illustrates a RatingControl that displays a value of 3.68.

    RatingControl - ExactFill

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FillPrecision property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also