Dundas Chart for ASP.NET
Add(String) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > SeriesCollection Class > Add Method : Add(String) Method


name
Name of the series to be added.
Name of the new data series.

Adds a Series object with the given name to the end of the collection.


Add new data series.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal name As String _
) As Series
Visual Basic (Usage) Copy Code
Dim instance As SeriesCollection
Dim name As String
Dim value As Series
 
value = instance.Add(name)
C#  
public Series Add( 
   string name
)

Parameters

name
Name of the series to be added.
Name of the new data series.

Return Value

Returns a reference to the newly added object (the class type will be the class type the collection stores). Refer to the table below for further details.
Newly added data series object.

Remarks

Items are always added as the last item in the collection.

The name argument is the Name property of the object being added.

The following table lists the type of objects that are returned when objects are added to the specified collections:

Name of Collection Class

Name of Class Added and Returned

ChartAreaCollection

ChartArea

SeriesCollection

Series


Note:
When Series objects are added to the SeriesCollection class using this method the associated DataPoint objects of the newly added Series object can not have more than one (1) Y-value per data point.  To add a series that can handle multiple Y-values per data point use the Add(string,int) definition of this overloaded method.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.