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

ItemImagePosition Property

The ItemImagePosition property specifies the position of an image relative to the item's text. The ItemImagePosition property includes the following position values:

 

Item Image Postion Values

Bottom

NotSet

Far

TextOnly

ImageOnly

Top

Near

 

This example sets the ItemImagePosition property to Top.

      Visual Basic

topicbar.ItemStyle.ImageUrl = "~/Images/house.gif"

topicbar.ItemStyle.ItemImagePosition = ItemImagePositionEnum.Top

      C#

topicbar.ItemStyle.ImageUrl = "~/Images/house.gif";

topicbar.ItemStyle.ItemImagePosition = ItemImagePositionEnum.Top;

 

 

This table below shows the remaining values for the ItemImagePosition property.

 

Bottom

Far

Image Only

Near

NotSet

TextOnly


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