Export (0) Print
Expand All

LegendCell.MapAreaAttributes Property

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

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft