11 references to Insert
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
261
Insert
(index, group);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListViewGroupCollectionTests.cs (10)
743
collection.
Insert
(1, group);
758
collection.
Insert
(1, group);
776
collection.
Insert
(0, group);
795
collection.
Insert
(0, group);
814
collection.
Insert
(0, group);
835
collection.
Insert
(index, group2);
851
Assert.Throws<ArgumentException>(() => collection.
Insert
(0, group));
864
Assert.Throws<ArgumentNullException>("group", () => collection.
Insert
(index, null));
874
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, new ListViewGroup()));
1131
Assert.Throws<InvalidOperationException>(() => listView.Groups.
Insert
(0, new ListViewGroup()));