Edit

Share via


LegendCollection.Add(String) Method

Definition

Adds the specified Legend object to the end of the collection.

public:
 System::Windows::Forms::DataVisualization::Charting::Legend ^ Add(System::String ^ name);
public System.Windows.Forms.DataVisualization.Charting.Legend Add (string name);
override this.Add : string -> System.Windows.Forms.DataVisualization.Charting.Legend
Public Function Add (name As String) As Legend

Parameters

name
String

The name of legend to be added.

Returns

A string value that represents the index of the added item.

Applies to