VtColor Object, FillColor Property Example

The following example sets the fill color for a chart backdrop brush. The FillColor property returns a reference to the VtColor object.

Private Sub Command1_Click()
' Sets Backdrop to Fill - Brush Style.
   MSChart1.Backdrop.Fill.Style = VtFillStyleBrush
   ' Sets chart fill color to red.
   With MSChart1.Backdrop.Fill.Brush.FillColor
      .Red = 255   ' Use properties to set color.
      .Green = 0
      .Blue = 0
   End With
End Sub