XY Chart NET 3 Control Reference > Properties > BackColor Property |
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 |
' 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