Gets ElementPaddings of an UI element.
Remarks
Use this property to set left, right, top, bottom and all paddings. You can use either this property or InlineStyle to access to the same set of CSS attributes. See the sample below:
[C#] // Get a menu look item
MenuItem lookItem;
lookItem = Menu1.ItemLooks.GetItemByID("default");
// Set look item's border width to 1px
// This affects all the menu items that uses this look item.
lookItem.NormalStyle.BorderWidth = 1;
// Set the submenu of look item's border style to solid.
lookItem.SubMenu.Style.BorderWidth = 1;
[Visual Basic.NET] ' Get a menu look item
Dim lookItem as MenuItem
lookItem = Menu1.ItemLooks.GetItemByID("default")
' Set look item's border style to solid
' This affects all the menu items that uses this look item.
lookItem.NormalStyle.BorderWidth = 1
' Set the submenu of look item's border style to solid.
lookItem.SubMenu.Style.BorderWidth = 1
See Also
ElementStyle Class | EO.Web Namespace