Chart.AddLegend Method
Adds a legend to the chart.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function AddLegend ( _
title As String, _
name As String _
) As Chart
'Usage
Dim instance As Chart
Dim title As String
Dim name As String
Dim returnValue As Chart
returnValue = instance.AddLegend(title, _
name)
public Chart AddLegend(
string title,
string name
)
public:
Chart^ AddLegend(
String^ title,
String^ name
)
member AddLegend :
title:string *
name:string -> Chart
public function AddLegend(
title : String,
name : String
) : Chart
Parameters
- title
Type: System.String
The text of the legend title.
- name
Type: System.String
The unique name of the legend.
Return Value
Type: System.Web.Helpers.Chart
The chart.