Provided as a shortcut for adding elements, series, and series collections the chart
SeriesCollection.
Syntax
Visual Basic (Declaration) |
|
Public Overloads Function Add() As Integer |
Example
Adds an element using the shortcut.
C# |
Copy Code |
[C#] Chart.Series.Element.YValue = 10; Chart.Series.Element.Name = "Element 1"; Chart.Series.Elements.Add(); Chart.SeriesCollection.Add(); |
C# |
Copy Code |
[Visual Basic] Chart.Series.Element.YValue = 10 Chart.Series.Element.Name = "Element 1" Chart.Series.Elements.Add() Chart.SeriesCollection.Add() |
See Also