Back to Devexpress

ListBoxDrawItemEventArgs.Item Property

windowsforms-devexpress-dot-xtraeditors-dot-listboxdrawitemeventargs-de90cce4.md

latest2.2 KB
Original Source

ListBoxDrawItemEventArgs.Item Property

Gets the value of the processed item.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public object Item { get; }
vb
Public ReadOnly Property Item As Object

Property Value

TypeDescription
Object

An object representing the value of the processed item.

|

Remarks

When the control is bound to data, the item’s value can differ from its display text. The control’s BaseListBoxControl.DisplayMember and BaseListBoxControl.ValueMember properties specify the data source fields whose contents represent items’ display text and values respectively. The Item property represents the content of a field assigned to the BaseListBoxControl.ValueMember property.

Otherwise, if no data source is associated with the control, the Item property is merely an object whose string representation is displayed within the item.

See Also

Index

State

DrawItem

DataSource

ListBoxDrawItemEventArgs Class

ListBoxDrawItemEventArgs Members

DevExpress.XtraEditors Namespace