Represents a foreground or background color.

Using the ChartColorFormat Object

Use the property to return a ChartColorFormat object that represents the foreground fill color. Use the property to return the background fill color. Use the property to return the color as an explicit red-green-blue value, and use the property to return or set the color as one of the colors in the current color scheme. The following example sets the foreground color, background color, and gradient for the chart area fill in

myChart
.
With myChart.ChartArea.Fill .Visible = True .ForeColor.SchemeColor = 15 .BackColor.SchemeColor = 17 .TwoColorGradient msoGradientHorizontal, 1 End With