ComponentOne WebMenus and WebBars for ASP.NET (2.0) Search HelpCentral 

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);

·      Delphi

topicbar.ItemStyle.ImageUrl := '~/Images/house.gif';

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

 


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