.netCHARTING v10.7 Documentation
Example 


dotnetCHARTING Namespace > Chart Class : ChartArea Property
ChartArea Property (Chart)
Gets or sets the main ChartArea of the image.
Syntax
'Declaration
 
Public Property ChartArea As ChartArea
'Usage
 
Dim instance As Chart
Dim value As ChartArea
 
instance.ChartArea = value
 
value = instance.ChartArea
public ChartArea ChartArea {get; set;}
Example
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;
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
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