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)
1994
collection.
Insert
(0, value1);
2013
collection.
Insert
(0, value2);
2044
collection.
Insert
(2, value1);
2122
collection.
Insert
(0, value1);
2150
collection.
Insert
(0, value2);
2194
collection.
Insert
(2, value1);
2298
collection.
Insert
(0, value1);
2320
collection.
Insert
(0, value2);
2357
collection.
Insert
(2, value1);
2455
collection.
Insert
(0, value1);
2486
collection.
Insert
(0, value2);
2536
collection.
Insert
(2, value1);
2618
collection.
Insert
(0, value);
2652
collection.
Insert
(0, value);
2675
collection.
Insert
(0, value);
2693
collection.
Insert
(0, value);
2797
collection.
Insert
(0, page3);
2798
collection.
Insert
(0, page2);
2799
collection.
Insert
(0, page1);
2865
collection.
Insert
(0, page3);
2866
collection.
Insert
(0, page2);
2867
collection.
Insert
(0, page1);
2907
Assert.Throws<ArgumentNullException>("tabPage", () => collection.
Insert
(0, (TabPage)null));
2916
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(-1, value));
2932
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(-1, value));
2948
Assert.Throws<ArgumentOutOfRangeException>(() => collection.
Insert
(index, value));
2961
Assert.Throws<ArgumentOutOfRangeException>(() => collection.
Insert
(index, value));
2977
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, value));
3000
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.
Insert
(index, value));
5011
TabControl.TabPages.
Insert
(1, page2);
5017
TabControl.TabPages.
Insert
(1, page3);
5035
TabControl.TabPages.
Insert
(0, page1);
5041
TabControl.TabPages.
Insert
(1, page2);
5047
TabControl.TabPages.
Insert
(1, page3);