Share via


SelectableItemsView.SelectedItems Property

Definition

Gets or sets the collection of currently selected items when SelectionMode is Multiple.

public:
 property System::Collections::Generic::IList<System::Object ^> ^ SelectedItems { System::Collections::Generic::IList<System::Object ^> ^ get(); void set(System::Collections::Generic::IList<System::Object ^> ^ value); };
public System.Collections.Generic.IList<object> SelectedItems { get; set; }
member this.SelectedItems : System.Collections.Generic.IList<obj> with get, set
Public Property SelectedItems As IList(Of Object)

Property Value

A list of selected data items. Never null; returns an empty list when no items are selected.

Remarks

This property tracks all selected items when SelectionMode is Multiple. For single selection, use the SelectedItem property instead for simpler binding.

Applies to