Back to Devexpress

ChartContext.GetControlSeries(ChartSeries) Method

dashboard-devexpress-dot-dashboardcommon-dot-chartcontext-dot-getcontrolseries-x28-devexpress-dot-dashboardcommon-dot-chartseries-x29.md

latest3.9 KB
Original Source

ChartContext.GetControlSeries(ChartSeries) Method

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

Declaration

csharp
public IList<Series> GetControlSeries(
    ChartSeries chartSeries
)
vb
Public Function GetControlSeries(
    chartSeries As ChartSeries
) As IList(Of Series)

Parameters

NameTypeDescription
chartSeriesChartSeries

A ChartSeries object for which the corresponding series are returned.

|

Returns

TypeDescription
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.

wpf-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/LineStyle.cs#L63

csharp
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;

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/LineStyle.vb#L63

vb
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

ChartContext Class

ChartContext Members

DevExpress.DashboardCommon Namespace