ComponentOne WebMenus and WebBars for ASP.NET: Defining the GroupStyle and ItemStyle Classes > Common GroupStyle and ItemStyle Properties > ForeColor Property

ForeColor Property

The ForeColor property gets or sets the foreground color of the Web server control.

GroupStyle.ForeColor property

The following code shows how to apply the ForeColor property to the GroupStyle.

      Visual Basic

topicbar.GroupStyle.ForeColor = Color.DeepSkyBlue

      C#

topicbar.GroupStyle.ForeColor = Color.DeepSkyBlue;

ItemStyle.ForeColor property

This example shows how to apply the ForeColor property to the ItemStyle.

      Visual Basic

topicbar.ItemStyle.ForeColor = Color.DeepSkyBlue

      C#

topicbar.ItemStyle.ForeColor = Color.DeepSkyBlue;


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.