dotnetCHARTING Send comments on this topic.
TitleBox Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : TitleBox Property


Gets or sets a Box object that represents the title box.

Syntax

Visual Basic (Declaration) 
Public Property TitleBox As Box
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim value As Box
 
instance.TitleBox = value
 
value = instance.TitleBox
C# 
public Box TitleBox {get; set;}

Example

C#Copy Code
Chart.TitleBox.Background = new Background(System.Drawing.Color.SkyBlue);
Chart.TitleBox.CornerBottomLeft = BoxCorner.Square;
Chart.TitleBox.CornerBottomRight = BoxCorner.Square;
Chart.TitleBox.CornerTopLeft = BoxCorner.Cut;
Chart.TitleBox.CornerTopRight = BoxCorner.Cut;
Chart.TitleBox.IconPath=
"icon.gif";
Chart.TitleBox.Label =  
new dotnetCHARTING.Label("Orders By Customers",new Font("Arial",10),Color.DarkSlateBlue);
Chart.TitleBox.Line =
new Line(Color.Blue);
Chart.TitleBox.Position = TitleBoxPosition.Center;
Chart.TitleBox.Shadow.Color = Color.LightBlue;
Chart.TitleBox.Shadow.Depth=40;

//For complete code, see TitleBox.aspx sample
    
Visual BasicCopy Code
Chart.TitleBox.Background = new Background(System.Drawing.Color.SkyBlue)
Chart.TitleBox.CornerBottomLeft = BoxCorner.Square
Chart.TitleBox.CornerBottomRight = BoxCorner.Square
Chart.TitleBox.CornerTopLeft = BoxCorner.Cut
Chart.TitleBox.CornerTopRight = BoxCorner.Cut
Chart.TitleBox.IconPath="icon.gif"
Chart.TitleBox.Label = new dotnetCHARTING.Label("Orders By Customers",new Font("Arial",10),Color.DarkSlateBlue)
Chart.TitleBox.Line = new Line(Color.Blue)
Chart.TitleBox.Position = TitleBoxPosition.Center
Chart.TitleBox.Shadow.Color = Color.LightBlue
Chart.TitleBox.Shadow.Depth=40

'For complete code, see TitleBox.aspx sample

Remarks

Notes

- To hide the title box use Chart.TitleBox.Position = TitleBoxPosition.None.

- Setting Chart.TitleBox.Icon = "...IconPath..." draws the image inside the title box.
- When no title, or icon is provided and TitleBoxPosition.FullWithLegend is not set, the title box is automatically hidden.

See Also

© 2010 All Rights Reserved.