Gets or sets the unique name of a Series object.
Data series name.
| Visual Basic (Declaration) | |
|---|---|
| Public Property Name As String | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
|  | |
| C# | |
|---|---|
| public string Name {get; set;} | |
Return Value
A value that represents the unique name of the data series.
We set the border color to red. 
| Visual Basic |  Copy Code | 
|---|---|
| Chart1.Series("Default").BorderColor = Color.Red | |
The name of a data series. Must be unique, otherwise an exception will be thrown.
This property can be used as the indexer when retrieving a Series object from the SeriesCollection object.
Setting this property to a zero-length string will result in an exception being thrown.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
 
  
  
  
 