11 instantiations of SelectedObjectCollection
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
978_selectedItems ??= new SelectedObjectCollection(this);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (10)
14var collection = new ListBox.SelectedObjectCollection(owner); 23Assert.Throws<ArgumentNullException>("owner", () => new ListBox.SelectedObjectCollection(null)); 30ICollection collection = new ListBox.SelectedObjectCollection(owner); 40IList collection = new ListBox.SelectedObjectCollection(owner); 61IList collection = new ListBox.SelectedObjectCollection(owner); 72IList collection = new ListBox.SelectedObjectCollection(owner); 80IList collection = new ListBox.SelectedObjectCollection(owner); 97IList collection = new ListBox.SelectedObjectCollection(owner); 108IList collection = new ListBox.SelectedObjectCollection(owner); 119IList collection = new ListBox.SelectedObjectCollection(owner);
8 references to SelectedObjectCollection
System.Windows.Forms (7)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
42private SelectedObjectCollection? _selectedItems; 974public SelectedObjectCollection SelectedItems 2021if (savedItems.InnerArray.GetState(index, SelectedObjectCollection.SelectedObjectMask)) 2180SelectedObjectCollection currentSelections = SelectedItems;
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (3)
89InnerArray.GetState(selectedIndex, SelectedObjectCollection.SelectedObjectMask)) 91return InnerArray.IndexOf(InnerArray.GetItem(selectedIndex), SelectedObjectCollection.SelectedObjectMask); 141object identifier = InnerArray.GetEntryObject(index, SelectedObjectCollection.SelectedObjectMask);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (1)
14var collection = new ListBox.SelectedObjectCollection(owner);