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)
745
collection.
Insert
(1, group);
760
collection.
Insert
(1, group);
778
collection.
Insert
(0, group);
797
collection.
Insert
(0, group);
816
collection.
Insert
(0, group);
837
collection.
Insert
(index, group2);
853
Assert.Throws<ArgumentException>(() => collection.
Insert
(0, group));
866
Assert.Throws<ArgumentNullException>("group", () => collection.
Insert
(index, null));
876
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, new ListViewGroup()));
1133
Assert.Throws<InvalidOperationException>(() => listView.Groups.
Insert
(0, new ListViewGroup()));