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

ItemAlign Property

The ItemAlign property specifies the horizontal alignment of content within an item.

This example sets the horizontal alignment to center for the items.

      Visual Basic

topicbar.ItemStyle.BorderWidth = Unit.Pixel(1)

topicbar.ItemStyle.ItemAlign = HorizontalAlign.Center

      C#

topicbar.ItemStyle.BorderWidth = Unit.Pixel(1);

topicbar.ItemStyle.ItemAlign = HorizontalAlign.Center;


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