Series::Legend Property

.NET Framework (current version)
 

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

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public:
[BindableAttribute(true)]
property String^ Legend {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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
Available since 4.0
Return to top
Show: