Gets or sets a LegendBox object that represents the legend box.
[Visual Basic]
Public Property LegendBox As LegendBox
Remarks
Notes
- To hide the legend box use
Chart.LegendBox.Position = LegendBoxPosition.None
.
- When Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend
is set
the legend box will disappear.
Example
[C#]
Chart.LegendBox.Background = new Background(System.Drawing.Color.SkyBlue); Chart.LegendBox.CornerBottomLeft = BoxCorner.Square; Chart.LegendBox.CornerBottomRight = BoxCorner.Square; Chart.LegendBox.CornerTopLeft = BoxCorner.Square; Chart.LegendBox.CornerTopRight = BoxCorner.Cut; Chart.LegendBox.IconPath="icon.gif"; Chart.LegendBox.Label = new dotnetCHARTING.Label("",new Font("Arial",10),Color.DarkSlateBlue); Chart.LegendBox.Line = new Line(Color.Blue); Chart.LegendBox.Position = LegendBoxPosition.Top; //For complete code, see LegendBox.aspx sample |
[Visual Basic]
Chart.LegendBox.Background = new Background(System.Drawing.Color.SkyBlue)
Chart.LegendBox.CornerBottomLeft = BoxCorner.Square
Chart.LegendBox.CornerBottomRight = BoxCorner.Square
Chart.LegendBox.CornerTopLeft = BoxCorner.Square
Chart.LegendBox.CornerTopRight = BoxCorner.Cut
Chart.LegendBox.IconPath="icon.gif"
Chart.LegendBox.Label = new dotnetCHARTING.Label("",new Font("Arial",10),Color.DarkSlateBlue)
Chart.LegendBox.Line = new Line(Color.Blue)
Chart.LegendBox.Position = LegendBoxPosition.Top
|
See Also
Chart Class
| Chart Members
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.