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

BorderStyle Property

The BorderStyle property gets or sets the border style of the Web server control. The BorderStyle property includes the following border styles:

 

Border Styles

Dash

None

Dotted

Notset

Double

Outset

Groove

Ridge

Inset

Solid

GroupStyle.BorderStyle property

The following code shows how to apply the BorderStyle property to the GroupStyle object of the C1WebTopicBar control. The outset border style is used in this example.

      Visual Basic

topicbar.GroupStyle.BorderStyle = BorderStyle.Outset

      C#

topicbar.GroupStyle.BorderStyle = BorderStyle.Outset;

ItemStyle.BorderStyle property

The ItemStyle.BorderStyle property gets or sets the border style of the items in the Web server control.

The following code shows how to apply the BorderStyle property to the ItemStyle object of the C1WebTopicBar control. The Groove border style is used in this example.

      Visual Basic

topicbar.ItemStyle.BorderStyle = BorderStyle.Groove

      C#

topicbar.ItemStyle.BorderStyle = BorderStyle.Groove;


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