Type | Description | |||
Color | A color expression that indicates the group's caption foreground color. |
Use the ForeColor property to specify the group's caption foreground color. Use the ForeColorList property to specify the foreground color of the group's list. Use the ForeColorGroup property to specify the default foreground color. Use the <fgcolor> built in HTML tag in the Caption property to define portions of text using a specified foreground color.
In VB.NET or C# you require the following functions until the .NET framework will provide:
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
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 VB sample changes the group's foreground color:
With ExplorerBar1.Groups(0) .ForeColor = vbBlue End With
The following C++ sample changes the group's foreground color:
m_explorerbar.GetGroups().GetItem( COleVariant( long(0) ) ).SetForeColor( RGB(0,0,255) ) ;
The following VB.NET sample changes the group's foreground color:
With AxExplorerBar1.Groups(0) .ForeColor = ToUInt32(Color.Blue) End With
The following C# sample changes the group's foreground color:
axExplorerBar1.Groups[0].ForeColor = ToUInt32(Color.Blue);
The following VFP sample changes the group's foreground color:
With thisform.ExplorerBar1.Groups(0) .ForeColor = RGB(0,0,255) EndWith