Back to Devexpress

WebChartControl.GetSeriesByName(String) Method

aspnet-devexpress-dot-xtracharts-dot-web-dot-webchartcontrol-dot-getseriesbyname-x28-system-dot-string-x29.md

latest2.0 KB
Original Source

WebChartControl.GetSeriesByName(String) Method

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

Namespace : DevExpress.XtraCharts.Web

Assembly : DevExpress.XtraCharts.v25.2.Web.dll

NuGet Package : DevExpress.Web.Visualization

Declaration

csharp
public Series GetSeriesByName(
    string seriesName
)
vb
Public Function GetSeriesByName(
    seriesName As String
) As Series

Parameters

NameTypeDescription
seriesNameString

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

|

Returns

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

See Also

WebChartControl Class

WebChartControl Members

DevExpress.XtraCharts.Web Namespace