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


Gets or sets the main ChartArea of the image.

Syntax

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

Example

C#Copy Code
ChartArea chartAreaObj= new ChartArea();
chartAreaObj.Background.Color = Color.LightBlue;
chartAreaObj.Line.Color=Color.Yellow;
chartAreaObj.InteriorLine.Color=Color.Blue;
chartAreaObj.Label.Text=
"Customized chart area";
Chart.ChartArea = chartAreaObj;
    
Visual BasicCopy Code
Dim chartAreaObj As ChartArea = new ChartArea()
chartAreaObj.Background.Color = Color.LightBlue
chartAreaObj.Line.Color=Color.Yellow
chartAreaObj.InteriorLine.Color=Color.Blue
chartAreaObj.Label.Text="Customized chart area"
Chart.ChartArea = chartAreaObj

See Also

© 2010 All Rights Reserved.