Back to Devexpress

ListBoxItemStyle Class

aspnet-devexpress-dot-web-d75796ab.md

latest3.3 KB
Original Source

ListBoxItemStyle Class

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

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ListBoxItemStyle :
    AppearanceItemStyle
vb
Public Class ListBoxItemStyle
    Inherits AppearanceItemStyle

The following members return ListBoxItemStyle objects:

Remarks

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.

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

Result:

Implements

IComponent

IDisposable

IStateManager

Inheritance

Object MarshalByRefObject Component Style AppearanceStyleBase AppearanceStyle AppearanceItemStyle ListBoxItemStyle

See Also

ListBoxItemStyle Members

List Box

DevExpress.Web Namespace