Gets or sets the name of the series associated Legend object.
Chart legend name used by the series.
Visual Basic (Declaration) | |
---|---|
Public Property Legend As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public string Legend {get; set;} |
Return Value
A 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.
Set this property to a zero-length string if you do not want the series shown in a Legend or set the ShowInLegend property to false.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family