ListBoxDrawItemEventArgs.Item Property

Gets the value of the processed item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Description
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