Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxListBox.Selected Property

Specifies whether a specific item is selected.

#Declaration

Delphi
property Selected[: Integer]: Boolean read; write;

#Property Value

Type
Boolean

#Remarks

Use the Selected property to determine whether the specified item is selected. The item is specified by its zero-based index via the Index property. If the specified index is negative or exceeds the maximum available item index, an exception is raised.

You can also select and deselect items using the Selected property. For this purpose, specify the desired item index and assign True or False respectively.

See Also