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

LabelPaddingTop Property

The LabelPaddingTop property gets the top padding for the item's text.

This example assigns the LabelPaddingTop property to 20 pixels. For illustration purposes this example includes the ImageUrl and ItemImagePosition property as well.

      Visual Basic

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

topicbar.ItemStyle.ItemImagePosition = ItemImagePositionEnum.Top

topicbar.ItemStyle.LabelPaddingTop = Unit.Pixel(20)

      C#

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

topicbar.ItemStyle.ItemImagePosition = ItemImagePositionEnum.Top;

topicbar.ItemStyle.LabelPaddingTop = Unit.Pixel(20);


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