Gets or sets the unique name of a ChartArea object.
The name of the chart area
Visual Basic (Declaration) | |
---|---|
Public Property Name As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public string Name {get; set;} |
Return Value
A string value that represents a ChartArea object's name.
We use the name to access chart areas in the ChartAreas collection property of the control.
C# | Copy Code |
---|---|
chart1.ChartAreas["Default"].BackColor = Color.Red; |
The name of a ChartArea object. Must be unique otherwise an exception will be thrown.
This property can be used as the indexer when retrieving a ChartArea object from the ChartAreaCollection 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