| Visual Basic (Declaration) | |
|---|---|
Public Property LegendBox As LegendBox | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public LegendBox LegendBox {get; set;} | |
| C# | Copy Code |
|---|---|
Chart.LegendBox.Background = new Background(System.Drawing.Color.SkyBlue); | |
| Visual Basic | Copy Code |
|---|---|
Chart.LegendBox.Background = new Background(System.Drawing.Color.SkyBlue) | |
Notes
- To hide the legend box use
- When
- To hide the legend box use
Chart.LegendBox.Position = LegendBoxPosition.None. - When
Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend is set
the legend box will disappear.