39 references to Insert
System.Windows.Forms (5)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
245
Insert
(index, actualTabPage);
248
public void Insert(int index, string? text) =>
Insert
(index, new TabPage
253
public void Insert(int index, string? key, string? text) =>
Insert
(index, new TabPage
267
Insert
(index, page);
281
Insert
(index, page);
System.Windows.Forms.Tests (34)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (34)
1996
collection.
Insert
(0, value1);
2015
collection.
Insert
(0, value2);
2046
collection.
Insert
(2, value1);
2124
collection.
Insert
(0, value1);
2152
collection.
Insert
(0, value2);
2196
collection.
Insert
(2, value1);
2300
collection.
Insert
(0, value1);
2322
collection.
Insert
(0, value2);
2359
collection.
Insert
(2, value1);
2457
collection.
Insert
(0, value1);
2488
collection.
Insert
(0, value2);
2538
collection.
Insert
(2, value1);
2620
collection.
Insert
(0, value);
2654
collection.
Insert
(0, value);
2677
collection.
Insert
(0, value);
2695
collection.
Insert
(0, value);
2799
collection.
Insert
(0, page3);
2800
collection.
Insert
(0, page2);
2801
collection.
Insert
(0, page1);
2867
collection.
Insert
(0, page3);
2868
collection.
Insert
(0, page2);
2869
collection.
Insert
(0, page1);
2909
Assert.Throws<ArgumentNullException>("tabPage", () => collection.
Insert
(0, (TabPage)null));
2918
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(-1, value));
2934
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(-1, value));
2950
Assert.Throws<ArgumentOutOfRangeException>(() => collection.
Insert
(index, value));
2963
Assert.Throws<ArgumentOutOfRangeException>(() => collection.
Insert
(index, value));
2979
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, value));
3002
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, value));
5013
TabControl.TabPages.
Insert
(1, page2);
5019
TabControl.TabPages.
Insert
(1, page3);
5037
TabControl.TabPages.
Insert
(0, page1);
5043
TabControl.TabPages.
Insert
(1, page2);
5049
TabControl.TabPages.
Insert
(1, page3);