Spread for ASP.NET 11 Product Documentation
CurrentRating Property
Example 


FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > RatingCellType Class : CurrentRating Property
Gets or sets the current rating.
Syntax
'Declaration
 
Public Property CurrentRating As Integer
'Usage
 
Dim instance As RatingCellType
Dim value As Integer
 
instance.CurrentRating = value
 
value = instance.CurrentRating
public int CurrentRating {get; set;}

Property Value

Integer number of the rating
Example
FarPoint.Web.Spread.Extender.RatingCellType rate = new FarPoint.Web.Spread.Extender.RatingCellType();
rate.StarCssClass = "ratingStar";
rate.EmptyStarCssClass = "emptyRatingStar";
rate.FilledStarCssClass = "filledRatingStar";
rate.WaitingStarCssClass = "savedRatingStar";
rate.CurrentRating = 2;
rate.MaxRating = 5;
rate.RatingDirection = AjaxControlToolkit.RatingDirection.LeftToRightTopToBottom;
rate.ShowEditor = true;
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = r;

.ratingStar 
{
    font-size: 0pt;
    width: 13px;
    height: 12px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    display: block;
    background-repeat: no-repeat;
}

.filledRatingStar {
    background-image: url(images/FilledStar.png);

}

.emptyRatingStar {
    background-image: url(images/EmptyStar.png);
}

.savedRatingStar {
    background-image: url(images/SavedStar.png);
}

Dim rate As New FarPoint.Web.Spread.Extender.RatingCellType
rate.StarCssClass = "ratingStar"
rate.EmptyStarCssClass = "emptyRatingStar"
rate.FilledStarCssClass = "filledRatingStar"
rate.WaitingStarCssClass = "savedRatingStar"
rate.CurrentRating = 2
rate.MaxRating = 5
rate.RatingDirection = AjaxControlToolkit.RatingDirection.LeftToRightTopToBottom
rate.ShowEditor = True
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = r

.ratingStar 
{
    font-size: 0pt;
    width: 13px;
    height: 12px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    display: block;
    background-repeat: no-repeat;
}

.filledRatingStar {
    background-image: url(images/FilledStar.png);

}

.emptyRatingStar {
    background-image: url(images/EmptyStar.png);
}

.savedRatingStar {
    background-image: url(images/SavedStar.png);
}
See Also

Reference

RatingCellType Class
RatingCellType Members