Back to Devexpress

XRChart.GetSeriesByName(String) Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrchart-dot-getseriesbyname-x28-system-dot-string-x29.md

latest1.7 KB
Original Source

XRChart.GetSeriesByName(String) Method

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

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

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 that 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).

See Also

XRChart Class

XRChart Members

DevExpress.XtraReports.UI Namespace