.netCHARTING v10.3 Documentation
Example 


dotnetCHARTING Namespace > Chart Class : TitleBox Property
TitleBox Property (Chart)
Gets or sets a Box object that represents the title box.
Syntax
'Declaration
 
Public Property TitleBox As Box
'Usage
 
Dim instance As Chart
Dim value As Box
 
instance.TitleBox = value
 
value = instance.TitleBox
public Box TitleBox {get; set;}
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.
Example
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
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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also