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

LabelPaddingLeft Property

The LabelPaddingLeft property gets the left padding for the item's text.

This example assigns the LabelPaddingLeft property to 20 pixels. The ImageUrl property is also applied to demonstrate that the LabelPaddingLeft property gets the space between the image and the label's text.

      Visual Basic

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

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

      C#

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

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

 


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