SeriesCollection.Add(String, ViewType) Method
Appends a new series with the specified name and view type to the collection.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value that specifies the name of the series. This value is assigned to the Series.Name property. |
viewType | ViewType | A ViewType enumeration value that specifies the view type of the series. The newly created SeriesViewBase object of the specified type is assigned to the SeriesBase.View property. |
Returns
Type | Description |
---|---|
Int32 | An integer value indicating the position into which the new element was inserted. |
Remarks
This method creates a new Series object, initializes it with the specified values and adds it to the end of the collection.
See Also