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)
1996collection.Insert(0, value1); 2015collection.Insert(0, value2); 2046collection.Insert(2, value1); 2124collection.Insert(0, value1); 2152collection.Insert(0, value2); 2196collection.Insert(2, value1); 2300collection.Insert(0, value1); 2322collection.Insert(0, value2); 2359collection.Insert(2, value1); 2457collection.Insert(0, value1); 2488collection.Insert(0, value2); 2538collection.Insert(2, value1); 2620collection.Insert(0, value); 2654collection.Insert(0, value); 2677collection.Insert(0, value); 2695collection.Insert(0, value); 2799collection.Insert(0, page3); 2800collection.Insert(0, page2); 2801collection.Insert(0, page1); 2867collection.Insert(0, page3); 2868collection.Insert(0, page2); 2869collection.Insert(0, page1); 2909Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null)); 2918Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2934Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(-1, value)); 2950Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2963Assert.Throws<ArgumentOutOfRangeException>(() => collection.Insert(index, value)); 2979Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 3002Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, value)); 5013TabControl.TabPages.Insert(1, page2); 5019TabControl.TabPages.Insert(1, page3); 5037TabControl.TabPages.Insert(0, page1); 5043TabControl.TabPages.Insert(1, page2); 5049TabControl.TabPages.Insert(1, page3);