T
Tony Johansson
Hello!
The property SelectedIndex return the index for the selected item in a
ListBox
If you have configured the ListBox so you can select more then one you use
property SelectedIndices to get a collection
of all selected indexes.
I can use SelectedItem to get the item that have been selected and use
SelectedItems to get the collection if more then one have been selected.
Now to my question why is not the property called SelectedIndexes to get the
collection for indexes. It's instead called
SelectedIndices. This is inconsistent
I mean it's very logical to use SelectedItem for a single item and
SelectedItems for a collection of items.
//Tony
The property SelectedIndex return the index for the selected item in a
ListBox
If you have configured the ListBox so you can select more then one you use
property SelectedIndices to get a collection
of all selected indexes.
I can use SelectedItem to get the item that have been selected and use
SelectedItems to get the collection if more then one have been selected.
Now to my question why is not the property called SelectedIndexes to get the
collection for indexes. It's instead called
SelectedIndices. This is inconsistent
I mean it's very logical to use SelectedItem for a single item and
SelectedItems for a collection of items.
//Tony