70 references to Insert
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
363
void IList.Insert(int index, object? item) =>
Insert
(index, item!);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
144
_selectedColumns.Items.
Insert
(selectedIndex, new ListBoxItem(newColumn!, this, newColumnDesigner));
670
_selectedColumns.Items.
Insert
(selectedIndex + 1, item);
716
_selectedColumns.Items.
Insert
(selectedIndex, item);
System.Windows.Forms.Tests (65)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (65)
4130
collection.
Insert
(0, 1);
4138
collection.
Insert
(0, 2);
4146
collection.
Insert
(1, 2);
4154
collection.
Insert
(3, 3);
4171
collection.
Insert
(0, 1);
4179
collection.
Insert
(0, 2);
4187
collection.
Insert
(0, 2);
4195
collection.
Insert
(3, 3);
4215
collection.
Insert
(0, 1);
4223
collection.
Insert
(0, 2);
4231
collection.
Insert
(0, 2);
4239
collection.
Insert
(3, 3);
4259
collection.
Insert
(0, 1);
4267
collection.
Insert
(0, 2);
4275
collection.
Insert
(0, 2);
4283
collection.
Insert
(3, 3);
4306
collection.
Insert
(0, 1);
4319
collection.
Insert
(0, 2);
4334
collection.
Insert
(0, 2);
4351
collection.
Insert
(3, 3);
4385
collection.
Insert
(0, 1);
4398
collection.
Insert
(0, 2);
4413
collection.
Insert
(0, 2);
4430
collection.
Insert
(3, 3);
4467
collection.
Insert
(0, 1);
4480
collection.
Insert
(0, 2);
4495
collection.
Insert
(0, 2);
4512
collection.
Insert
(3, 3);
4549
collection.
Insert
(0, 1);
4562
collection.
Insert
(0, 2);
4577
collection.
Insert
(0, 2);
4594
collection.
Insert
(3, 3);
4626
collection.
Insert
(3, 0);
4634
collection.
Insert
(4, 5);
4656
collection.
Insert
(3, 0);
4662
collection.
Insert
(4, 5);
4688
collection.
Insert
(3, 0);
4696
collection.
Insert
(2, 2);
4704
collection.
Insert
(3, 4);
4730
collection.
Insert
(3, 0);
4737
collection.
Insert
(2, 2);
4744
collection.
Insert
(4, 5);
4771
collection.
Insert
(3, 0);
4782
collection.
Insert
(4, 5);
4816
collection.
Insert
(3, 0);
4827
collection.
Insert
(4, 5);
4865
collection.
Insert
(3, 0);
4876
collection.
Insert
(2, 2);
4887
collection.
Insert
(3, 4);
4925
collection.
Insert
(3, 0);
4936
collection.
Insert
(2, 2);
4947
collection.
Insert
(4, 5);
4963
collection.
Insert
(0, 2);
4964
collection.
Insert
(1, 1);
4965
collection.
Insert
(2, 1);
4966
collection.
Insert
(3, 3);
4977
collection.
Insert
(0, 2);
4978
collection.
Insert
(1, 1);
4979
collection.
Insert
(2, 1);
4980
collection.
Insert
(3, 3);
5002
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, 1));
5016
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, 1));
5024
Assert.Throws<ArgumentNullException>("item", () => collection.
Insert
(0, null));
5035
Assert.Throws<ArgumentException>(() => collection.
Insert
(0, 1));
5052
Assert.Throws<OutOfMemoryException>(() => collection.
Insert
(0, 1));
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
894
ListDragTarget.Items.
Insert
(_indexOfItemUnderMouseToDrop, item);