Vcl.StdCtrls.TListBox.MultiSelect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MultiSelect: Boolean read FMultiSelect write SetMultiSelect default 0;

C++

__property MultiSelect = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TListBox

Description

Specifies whether the user can select more than one item.

Vcl.StdCtrls.TListBox.MultiSelect inherits from Vcl.Controls.TCustomMultiSelectListControl.MultiSelect. All content below this line refers to Vcl.Controls.TCustomMultiSelectListControl.MultiSelect.

Specifies whether the user can select more than one item.

Use MultiSelect to specify whether the user can select more than one item. When MultiSelect is true, the user can select multiple items in the control, and the SelCount property indicates the number of selected items. When MultiSelect is false, the user can only select one item, which is indicated by the ItemIndex property.

Note: To implement the MultiSelect property in a TCustomMultiSelectListControl descendant, override the protected SetMultiSelect method.

See Also

Code Examples