dotnetCHARTING Send comments on this topic.
Add() Method
See Also  Example
dotnetCHARTING Namespace > SeriesCollection Class > Add Method : Add() Method


Provided as a shortcut for adding elements, series, and series collections the chart SeriesCollection.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Add() As Integer
Visual Basic (Usage)Copy Code
Dim instance As SeriesCollection
Dim value As Integer
 
value = instance.Add()
C# 
public int Add()

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

© 2018 All Rights Reserved.