LegendCell.MapAreaAttributes Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the map area attributes of the legend cell.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public virtual string MapAreaAttributes { get; set; }

Property Value

Type: System.String

A string value that represents the attributes of the legend cell's corresponding map area. The default value is a zero-length string.

If you set the MapAreaAttributes property, a client-side image map will automatically be created. A map area will also be created, with its attribute string appended to the <map> tag that corresponds to the relevant legend cell.

The MapAreaAttributes property can be used in conjunction with the Url property to specify map area attributes, for example, target= _blank, as well as client-side event handlers, for example, OnClick="MyEvent()".

Setting this property will have no effect if the IsMapEnabled property is set to false. The default value is true.

If the MapAreaAttributes property is set for both a series and a data point of that series, the data point property has precedence.

Special keywords may be used when setting this property, and each keyword will be replaced with some type of data from the applicable chart element.

.NET Framework
Available since 4.0
Return to top
Show: