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)
743collection.Insert(1, group); 758collection.Insert(1, group); 776collection.Insert(0, group); 795collection.Insert(0, group); 814collection.Insert(0, group); 835collection.Insert(index, group2); 851Assert.Throws<ArgumentException>(() => collection.Insert(0, group)); 864Assert.Throws<ArgumentNullException>("group", () => collection.Insert(index, null)); 874Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewGroup())); 1131Assert.Throws<InvalidOperationException>(() => listView.Groups.Insert(0, new ListViewGroup()));