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

Font Property

The Font property gets the font properties from the FontInfo class associated with the Web server control. The FontInfo exposes the following font style properties:

 

Font Style Properties

Bold

Overline

Italic

Size

Name

Strikeout

Names

Underline

 

GroupStyle.Font property

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

      Visual Basic

topicbar.GroupStyle.Font.Bold = True

      C#

topicbar.GroupStyle.Font.Bold = true;

ItemStyle.Font property

Use the code below to apply the Font property to the ItemStyle object of the C1WebTopicBar control.

 

      Visual Basic

topicbar.ItemStyle.Font.Bold = True

      C#

topicbar.ItemStyle.Font.Bold = true;


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