Gets a series within the chart’s series collection by its name.
public Series GetSeriesByName( string seriesName )
Public Function GetSeriesByName( seriesName As String ) As Series
A String which specifies the name of the series to find.
A Series object that represents the series with the specified name.
- 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.