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

ASPxRatingControl.ImageMapUrl Property

Gets or sets the URL pointing to the image representing an item within the ASPxRatingControl.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public string ImageMapUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A System.String value specifying the URL representing the path to the image.

Remarks

The ImageMapUrl property is useful to specify a URL representing the path to the custom image. Custom image can be used to customize the control’s items appearance in different states (hovered, selected, etc.) - either a unified image for all items, or a specific appearance for each item in accordance with the ASPxRatingControl.ItemCount 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.

View Example

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