Legend cell name.
| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property Name As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public virtual string Name {get; set;} | |
Return Value
A string value that represents the text name of the legend cell.We use this property to access custom legend items in the collection.
| C# | Copy Code |
|---|---|
chart1.Legends["Default"].CustomItems[0].Cells["Cell1"].Text = "Hello World"; | |
The name of the legend cell. Must be unique, otherwise an exception will be thrown.
This property can be used as the indexer when retrieving a LegendCell object from the LegendCellCollection.
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