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

ChartControl.GetSeriesByName(String) Method

Gets a series within the chart’s series collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v19.1.UI.dll

Declaration

public Series GetSeriesByName(
    string seriesName
)

Parameters

Name Type Description
seriesName String

A String which specifies the name of the series to find.

Returns

Type Description
Series

A Series object that represents the series with the specified name.

Remarks

Note

  • This method finds only the first occurrence of a series with the specified name. If there are several series with the same name, only the first series found will be returned. If no element with the specified name is found, then this method returns null (Nothing in Visual Basic).
  • The seriesName method argument value should get the localized series name, because the Series.Name property values are dependent on localization.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetSeriesByName(String) 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