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.
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);
· Delphi
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 © ComponentOne LLC. All rights reserved. |