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

ASPxRatingControl.ItemHeight Property

Gets or sets an item‘s height.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(19)]
public int ItemHeight { get; set; }

Property Value

Type Default Description
Int32 19

An integer value representing an item’s height in pixels.

Remarks

The ItemHeight property, together with the ASPxRatingControl.ItemWidth property, are useful to specify the item‘s size, for customizing the items images via the ASPxRatingControl.ImageMapUrl property.

For more information, see the Customizing Item’s Images topic.

Example

This sample illustrates how to customize the ASPxRatingControl‘s items images.

For this purpose, use the control’s ASPxRatingControl.ImageMapUrl, ASPxRatingControl.ItemWidth and ASPxRatingControl.ItemHeight properties, that specify a custom image, and its size.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e){
    }
}
See Also