Use this property to return/set a value that determines the background color the chart area will be displayed in.
[Visual Basic] Property BackColor() As Color [C#] System.Drawing.Color XYChartNETCtl.BackColor [C++] __property System::Drawing::Color XYChartNet::XYChartNETCtl::BackColor
Color.LightGray
The Gradient property will override this property if the Gradient option is set to Custom.
XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.
[Visual Basic] 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 [C#] 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 [C++] 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