10 references to SetItemInternal
System.Windows.Forms (3)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3036
Items.
SetItemInternal
(index, Items[index]!);
3312
Items.
SetItemInternal
(index, value);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
226
SetItemInternal
(index, value!);
System.Windows.Forms.Tests (7)
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (7)
1094
comboBoxObjectCollection.
SetItemInternal
(0, "c");
1095
comboBoxObjectCollection.
SetItemInternal
(1, "b");
1119
comboBoxObjectCollection.
SetItemInternal
(0, person3);
1120
comboBoxObjectCollection.
SetItemInternal
(1, "Name 4");
1143
Assert.Throws<ArgumentNullException>("value", () => comboBoxObjectCollection.
SetItemInternal
(0, null));
1160
Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.
SetItemInternal
(-1, 1));
1177
Assert.Throws<ArgumentOutOfRangeException>("index", () => comboBoxObjectCollection.
SetItemInternal
(3, 1));