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)
4128
collection.
Insert
(0, 1);
4136
collection.
Insert
(0, 2);
4144
collection.
Insert
(1, 2);
4152
collection.
Insert
(3, 3);
4169
collection.
Insert
(0, 1);
4177
collection.
Insert
(0, 2);
4185
collection.
Insert
(0, 2);
4193
collection.
Insert
(3, 3);
4213
collection.
Insert
(0, 1);
4221
collection.
Insert
(0, 2);
4229
collection.
Insert
(0, 2);
4237
collection.
Insert
(3, 3);
4257
collection.
Insert
(0, 1);
4265
collection.
Insert
(0, 2);
4273
collection.
Insert
(0, 2);
4281
collection.
Insert
(3, 3);
4304
collection.
Insert
(0, 1);
4317
collection.
Insert
(0, 2);
4332
collection.
Insert
(0, 2);
4349
collection.
Insert
(3, 3);
4383
collection.
Insert
(0, 1);
4396
collection.
Insert
(0, 2);
4411
collection.
Insert
(0, 2);
4428
collection.
Insert
(3, 3);
4465
collection.
Insert
(0, 1);
4478
collection.
Insert
(0, 2);
4493
collection.
Insert
(0, 2);
4510
collection.
Insert
(3, 3);
4547
collection.
Insert
(0, 1);
4560
collection.
Insert
(0, 2);
4575
collection.
Insert
(0, 2);
4592
collection.
Insert
(3, 3);
4624
collection.
Insert
(3, 0);
4632
collection.
Insert
(4, 5);
4654
collection.
Insert
(3, 0);
4660
collection.
Insert
(4, 5);
4686
collection.
Insert
(3, 0);
4694
collection.
Insert
(2, 2);
4702
collection.
Insert
(3, 4);
4728
collection.
Insert
(3, 0);
4735
collection.
Insert
(2, 2);
4742
collection.
Insert
(4, 5);
4769
collection.
Insert
(3, 0);
4780
collection.
Insert
(4, 5);
4814
collection.
Insert
(3, 0);
4825
collection.
Insert
(4, 5);
4863
collection.
Insert
(3, 0);
4874
collection.
Insert
(2, 2);
4885
collection.
Insert
(3, 4);
4923
collection.
Insert
(3, 0);
4934
collection.
Insert
(2, 2);
4945
collection.
Insert
(4, 5);
4961
collection.
Insert
(0, 2);
4962
collection.
Insert
(1, 1);
4963
collection.
Insert
(2, 1);
4964
collection.
Insert
(3, 3);
4975
collection.
Insert
(0, 2);
4976
collection.
Insert
(1, 1);
4977
collection.
Insert
(2, 1);
4978
collection.
Insert
(3, 3);
5000
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, 1));
5014
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, 1));
5022
Assert.Throws<ArgumentNullException>("item", () => collection.
Insert
(0, null));
5033
Assert.Throws<ArgumentException>(() => collection.
Insert
(0, 1));
5050
Assert.Throws<OutOfMemoryException>(() => collection.
Insert
(0, 1));
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
835
ListDragTarget.Items.
Insert
(_indexOfItemUnderMouseToDrop, item);