This documentation is archived and is not being maintained.

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 property String^ MapAreaAttributes {
	String^ get ();
	void set (String^ value);
}

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.

Implements

IChartMapArea::MapAreaAttributes

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

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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