11 references to Insert
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
261Insert(index, group);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListViewGroupCollectionTests.cs (10)
745collection.Insert(1, group); 760collection.Insert(1, group); 778collection.Insert(0, group); 797collection.Insert(0, group); 816collection.Insert(0, group); 837collection.Insert(index, group2); 853Assert.Throws<ArgumentException>(() => collection.Insert(0, group)); 866Assert.Throws<ArgumentNullException>("group", () => collection.Insert(index, null)); 876Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewGroup())); 1133Assert.Throws<InvalidOperationException>(() => listView.Groups.Insert(0, new ListViewGroup()));