XY Chart NET 3 Control Reference
BackColor Property

Use this property to return/set a value that determines the background color the chart area will be displayed in.

Syntax
[Visual Basic]
Property BackColor() As Color
[C#]
System.Drawing.Color XYChartNETCtl.BackColor
[C++]
property System::Drawing::Color XYChartNet::XYChartNETCtl::BackColor
       
Default Value
Color.LightGray
Remarks
The Gradient property will override this property if the Gradient option is set to Custom.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Dim tmpColor As Color
tmpColor = XYChartNETCtl1.BackColor      'Returns the chart's background color

XYChartNETCtl1.BackColor = Color.White   'Sets the chart's background color to white

XYChartNETCtl1.BackColor = Color.Black   'Sets the chart's background color to black
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

System.Drawing.Color tmpColor;
tmpColor = XYChartNETCtl1.BackColor;        //Returns the chart's background color

XYChartNETCtl1.BackColor = Color.DarkBlue;  //Sets the chart's background color to dark blue
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Drawing::Color tmpColor;
tmpColor = XYChartNETCtl1->BackColor;         //Returns the chart's background color

XYChartNETCtl1->BackColor = Color::DarkBlue;  //Sets the chart's background color to dark blue
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.