From RAD Studio API Documentation
Jump to: navigation, search


property Selected: TColor read GetSelected write SetSelected default 0;


__property Selected = {default=0};


Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls TColorListBox


Indicates whether a particular item is selected.

Vcl.ExtCtrls.TColorListBox.Selected inherits from Vcl.StdCtrls.TCustomListBox.Selected. All content below this line refers to Vcl.StdCtrls.TCustomListBox.Selected.

Indicates whether a particular item is selected.

Use Selected to query the state of a particular item in the list box. If the item specified by the Index parameter is selected in the list box, the value of the Selected property is true. If the specified item is not selected, Selected is false. Set Selected to change the currently selected item.

The Index parameter is the item referenced by its position in the list box, with the first item having an Index value of 0.

An item is selected when the user highlights it. More than one item in the list box can be selected by setting the MultiSelect property to true. In this case, the Selected item is the one that has focus when the list box has input focus.

See Also

Code Examples