ListBox.SelectedItems Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property IVector<Platform::Object ^> ^ SelectedItems { IVector<Platform::Object ^> ^ get(); };
IVector<IInspectable> SelectedItems();
public IList<object> SelectedItems { get; }
var iVector = listBox.selectedItems;
Public ReadOnly Property SelectedItems As IList(Of Object)
Property Value
The list of currently selected items for the ListBox control.
Remarks
When SelectionMode is Multiple or Extended, use the SelectedItems property to get the items that are selected. When SelectionMode is Single, use the Selector.SelectedItem property to get the item that's selected.
Applies to
See also
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla