Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

public int Add(
    string name,
    ViewType viewType
)

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(String, ViewType) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also