Back to Devexpress

BaseListBoxControl.SelectionMode Property

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-3205a7e0.md

latest2.4 KB
Original Source

BaseListBoxControl.SelectionMode Property

Gets or sets whether a single or multiple items can be selected.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(SelectionMode.One)]
[DXCategory("Behavior")]
public SelectionMode SelectionMode { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(SelectionMode.One)>
Public Property SelectionMode As SelectionMode

Property Value

TypeDefaultDescription
SelectionModeOne

A SelectionMode enumeration member specifying the list box control’s selection behavior.

|

Remarks

Use this property to determine how many items a user can select at once and the way the user can perform multiple selections. By default, the list box control functions in single selection mode so that only a single item can be selected at a time. When the SelectionMode property is set to SelectionMode.MultiExtended , pressing SHIFT and clicking the mouse or pressing SHIFT and one of the arrow keys (UP ARROW, DOWN ARROW, LEFT ARROW, and RIGHT ARROW) extends the selection from the previously selected to the current item. Pressing CTRL and clicking the mouse selects or deselects an item in the list. When the property is set to SelectionMode.MultiSimple , a mouse click or pressing the SPACEBAR selects or deselects an item in the list.

See Also

SelectedIndex

SelectedIndices

SelectedItem

CheckMode

BaseListBoxControl Class

BaseListBoxControl Members

DevExpress.XtraEditors Namespace