A newer version of this page is available. Switch to the current version.

ListBoxItemStyle Class

Contains style settings that define the appearance of items within an editor's item list.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll


public class ListBoxItemStyle :
Public Class ListBoxItemStyle
    Inherits AppearanceItemStyle


In addition to the settings inherited from a base class, the ListBoxItemStyle class exposes the ListBoxItemStyle.Height property which allows the height of list items displayed within an editor to be specified.

<dx:ASPxListBox ID="ASPxListBox1" runat="server">
        <dx:ListEditItem Text="Item1" Value="Item1" />
        <dx:ListEditItem Text="Item2" Value="Item2" />
        <dx:ListEditItem Text="Item3" Value="Item3" />
    <ItemStyle Height="30" BackColor="Wheat" 
    Border-BorderWidth="1" Border-BorderColor="Black" Border-BorderStyle="Dotted" />