Url Property

LegendCell.Url Property

.NET Framework (current version)
 

Gets or sets the URL target of the legend cell.

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

public virtual string Url { get; set; }

Property Value

Type: System.String

A string value that represents the destination URL or anchor point of the chart element. To use an absolute URL, start the string expression with either "http://" or "www.". If the string does not start with either of these prefixes it will be treated as a relative URL.

If you set this property, a client-side image map will be automatically created. A map area will also be created with its Href attribute set to the specified anchor or URL.

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

Attributes of the map area(s), for example, target=_blank, can be specified by using the MapAreaAttributes property.

The Url property allows you to set special keywords to display different types of chart-related data. For more information, see Keywords.

To create image maps that have user-defined coordinates, use the MapAreas property of the root Chart object. For more information, see Chart Image Rendering.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft