Skip to main content
A newer version of this page is available. .

ListBoxEdit.SelectedItem Property

Gets or sets the currently selected item. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public object SelectedItem { get; set; }

Property Value

Type Description
Object

An object that represents the currently selected item.

Remarks

If multiple item selection is enabled, the SelectedItem property returns the first element in the ListBoxEdit.SelectedItems collection.

To obtain the currently selected item’s index, use the ListBoxEdit.SelectedIndex property.

listBox_SelectedItems

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedItem property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also