39 references to Insert
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
245Insert(index, actualTabPage); 248public void Insert(int index, string? text) => Insert(index, new TabPage 253public void Insert(int index, string? key, string? text) => Insert(index, new TabPage 267Insert(index, page); 281Insert(index, page);
System.Windows.Forms.Tests (34)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (34)
1994collection.Insert(0, value1); 2013collection.Insert(0, value2); 2044collection.Insert(2, value1); 2122collection.Insert(0, value1); 2150collection.Insert(0, value2); 2194collection.Insert(2, value1); 2298collection.Insert(0, value1); 2320collection.Insert(0, value2); 2357collection.Insert(2, value1); 2455collection.Insert(0, value1); 2486collection.Insert(0, value2); 2536collection.Insert(2, value1); 2618collection.Insert(0, value); 2652collection.Insert(0, value); 2675collection.Insert(0, value); 2693collection.Insert(0, value); 2797collection.Insert(0, page3); 2798collection.Insert(0, page2); 2799collection.Insert(0, page1); 2865collection.Insert(0, page3); 2866collection.Insert(0, page2); 2867collection.Insert(0, page1); 2907Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null)); 2916Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2932Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2948Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2961Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2977Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 3000Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 5011TabControl.TabPages.Insert(1, page2); 5017TabControl.TabPages.Insert(1, page3); 5035TabControl.TabPages.Insert(0, page1); 5041TabControl.TabPages.Insert(1, page2); 5047TabControl.TabPages.Insert(1, page3);