dashboard-devexpress-dot-dashboardcommon-dot-chartcontext-dot-getcontrolseries-x28-devexpress-dot-dashboardcommon-dot-chartseries-x29.md
Returns a collection of the Series objects that corresponds to the specified ChartSeries (a data item container from the Values section).
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public IList<Series> GetControlSeries(
ChartSeries chartSeries
)
Public Function GetControlSeries(
chartSeries As ChartSeries
) As IList(Of Series)
| Name | Type | Description |
|---|---|---|
| chartSeries | ChartSeries |
A ChartSeries object for which the corresponding series are returned.
|
| Type | Description |
|---|---|
| IList<Series> |
A collection of the Series objects that correspond to the specified ChartSeries.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetControlSeries(ChartSeries) 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.
if(!string.IsNullOrEmpty(customPropertyValue) && Enum.TryParse(customPropertyValue, true, out dashStyle)) {
foreach(var chartSeries in context.GetControlSeries(series)) {
DevExpress.XtraCharts.LineSeriesView view = chartSeries.View as DevExpress.XtraCharts.LineSeriesView;
If (Not String.IsNullOrEmpty(customPropertyValue)) AndAlso System.Enum.TryParse(customPropertyValue, True, dashStyle) Then
For Each chartSeries In context.GetControlSeries(series)
Dim view As DevExpress.XtraCharts.LineSeriesView = TryCast(chartSeries.View, DevExpress.XtraCharts.LineSeriesView)
See Also