ChartFillFormat![]() |
Represents a foreground or background color.
Use the ForeColor
property to return a ChartColorFormat object that represents the foreground fill color. Use the BackColor
property to return the background fill color. Use the RGB
property to return the color as an explicit red-green-blue value, and use the SchemeColor
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