property Chart.OverviewBackColor as Color
Specifies the background color of the chart's overview.

TypeDescription
Color A Color expression that indicates the background color of the chart's overview.
Use the OverviewBackColor property to change the background color of the overview's overview. The OverviewVisible property specifies whether the overview's overview layout is visible or hidden. Use the BackColor property to change the background color for the chart area. Use the OverviewSelBackColor property to change the visual appearance of the selection in the overview area. The OverviewShowMarkTimeZones property shows the marked time-zones on the control's overview map. The OverviewSelTransparent property indicates the transparency to show the selection in the items or scale-zoom part of the overview map.

The following VB sample changes the overview's background color:

With G2antt1.Chart
    .OverviewBackColor = RGB(&H80, &H80, &H80)
End With

The following C++ sample changes the overview's background color:

m_g2antt.GetChart().SetOverviewBackColor( RGB(0x80,0x80,0x80) );

The following VB.NET sample changes the overview's background color:

With AxG2antt1.Chart
    .OverviewBackColor = ToUInt32(Color.FromArgb(&H80, &H80, &H80))
End With

where the ToUInt32 function converts a Color expression to an OLE_COLOR type:

Shared Function ToUInt32(ByVal c As Color) As UInt32
    Dim i As Long
    i = c.R
    i = i + 256 * c.G
    i = i + 256 * 256 * c.B
    ToUInt32 = Convert.ToUInt32(i)
End Function

The following C# sample changes the overview's background color:

axG2antt1.Chart.OverviewBackColor = ToUInt32(Color.FromArgb(0x80, 0x80, 0x80));

where the ToUInt32 function converts a Color expression to an OLE_COLOR type:

private UInt32 ToUInt32(Color c)
{
	long i;
	i = c.R;
	i = i + 256 * c.G;
	i = i + 256 * 256 * c.B;
	return Convert.ToUInt32(i);
}

The following VFP sample changes the overview's background color:

With thisform.G2antt1.Chart
    .OverviewBackColor = RGB(128, 128, 128)
EndWith