Export (0) Print
Expand All

Series.Legend Property

Gets or sets the name of the series associated with the Legend object.

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

[BindableAttribute(true)]
public string Legend { get; set; }

Property Value

Type: System.String
A string value that represents the name of a Legend object.

When a series is added at both design time and run time, it is automatically assigned to the default Legend object.

If you do not want the series shown in a legend, set this property to a zero-length string, or set the IsVisibleInLegend property to false.

.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.

Community Additions

ADD
Show:
© 2014 Microsoft