menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RatingItemContext - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RatingItemContext

    Represents the context of EmptyTemplate and FullTemplate which used to render the content of the item.

    Inheritance
    System.Object
    RatingItemContext
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RatingItemContext : Object

    Constructors

    RatingItemContext()

    Declaration
    public RatingItemContext()

    Properties

    Index

    Gets or sets the index of the associated the rating item.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    An index of the rating item. The value ranges from 0 to ItemsCount - 1, where ItemsCount is the total number of rating items in the component. For example, if there are 5 rating items in the component, the ItemIndex for the first item would be 0, the ItemIndex for the second item would be 1, and so on.

    Value

    Gets or sets the selected value for a particular rating item. The value range from 0 to 1.

    Declaration
    public double Value { get; set; }
    Property Value
    Type Description
    System.Double

    The selected value of a particular item ranges from 0 to 1, where 0 represents no selection and 1 represents a fully selected item.
    For example, if Value is set to 0.5, then half of the rating item will be selected.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved