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


Provided as a shortcut for adding element the chart SeriesCollection.

Syntax

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

Example

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

© 2010 All Rights Reserved.