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

XRChart.Series Property

Provides access to the chart’s collection of series objects.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

[SRCategory(ReportStringId.CatElements)]
public SeriesCollection Series { get; }

Property Value

Type Description
SeriesCollection

A SeriesCollection object that represents the collection of series.

Remarks

The Series property provides access to a collection of all series which are defined explicitly within a chart control (either at design time or run time). The collection is represented by an instance of the SeriesCollection class and allows individual series (which are instances of the Series class) to be added, deleted and accessed using indexer notation.

Note that series which are bound to data at the level of a chart control (in particular, using the XRChart.DataSource, XRChart.SeriesDataMember and both the SeriesBase.ArgumentDataMember and SeriesBase.ValueDataMembers properties) are created dynamically based upon the data obtained from the specified data source and they are not presented within the Series collection. In order to access such series use the CustomDrawSeriesEventArgsBase.Series property of a chart control’s specific events (such as the XRChart.CustomDrawSeries or XRChart.CustomDrawSeriesPoint event, for instance). To perform a centralized customization of such series use the settings which are available via the XRChart.SeriesTemplate property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Series property.

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