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

BorderColor Property

The BorderColor property gets or sets the border color of the Web server control.

This example uses the default border style: solid with a width size of 5 pixels.

GroupStyle.BorderColor property

The following code shows how to apply the BorderColor property to the GroupStyle object of the C1WebTopicBar control.

      Visual Basic

topicbar.GroupStyle.BorderColor = Color.AniqueWhite

      C#

topicbar.GroupStyle.BorderColor = Color.AniqueWhite;

ItemStyle.BorderColor property

The following code shows how to apply the BorderColor property to the ItemStyle object of the C1WebTopicBar control.

      Visual Basic

topicbar.ItemStyle.BorderColor = Color.AniqueWhite

      C#

topicbar.ItemStyle.BorderColor = Color.AniqueWhite;


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