6 types derived from TabPage
System.Windows.Forms.Tests (6)
System\Windows\Forms\TabControl.ControlCollectionTests.cs (1)
1564private class NullTextTabPage : TabPage
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (1)
5065private class NullTextTabPage : TabPage
System\Windows\Forms\TabControlTests.cs (2)
5706private class SubTabPage : TabPage 5710private class NullTextTabPage : TabPage
System\Windows\Forms\TabPageTests.cs (2)
5206private class NullTextTabPage : TabPage 5215private class SubTabPage : TabPage
570 instantiations of TabPage
Accessibility_Core_App (12)
ContainerControls.Designer.cs (10)
60this.tabPage9 = new System.Windows.Forms.TabPage(); 62this.tabPage10 = new System.Windows.Forms.TabPage(); 64this.tabPage11 = new System.Windows.Forms.TabPage(); 66this.tabPage12 = new System.Windows.Forms.TabPage(); 75this.tabPage1 = new System.Windows.Forms.TabPage(); 76this.tabPage2 = new System.Windows.Forms.TabPage(); 81this.tabPage3 = new System.Windows.Forms.TabPage(); 83this.tabPage4 = new System.Windows.Forms.TabPage(); 91this.tabPage5 = new System.Windows.Forms.TabPage(); 92this.tabPage6 = new System.Windows.Forms.TabPage();
ContainerControls2.Designer.cs (2)
59this.tabPage7 = new System.Windows.Forms.TabPage(); 60this.tabPage8 = new System.Windows.Forms.TabPage();
DesignSurface (6)
MainForm.Designer.cs (6)
36this.tabPage1 = new System.Windows.Forms.TabPage(); 37this.tabPage2 = new System.Windows.Forms.TabPage(); 38this.tabPage3 = new System.Windows.Forms.TabPage(); 39this.tabPage4 = new System.Windows.Forms.TabPage(); 40this.tabPage5 = new System.Windows.Forms.TabPage(); 41this.tabPage6 = new System.Windows.Forms.TabPage();
PresentationUI (2)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (2)
40this._summaryTab = new System.Windows.Forms.TabPage(); 64this._infoTab = new System.Windows.Forms.TabPage();
System.Windows.Forms (8)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (8)
99public void Add(string? text) => Add(new TabPage 104public void Add(string? key, string? text) => Add(new TabPage 110public void Add(string? key, string? text, int imageIndex) => Add(new TabPage 117public void Add(string? key, string? text, string imageKey) => Add(new TabPage 248public void Insert(int index, string? text) => Insert(index, new TabPage 253public void Insert(int index, string? key, string? text) => Insert(index, new TabPage 261TabPage page = new() 275TabPage page = new()
System.Windows.Forms.Design (3)
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
162_paletteTabPage = new TabPage(SR.ColorEditorPaletteTab); 163_commonTabPage = new TabPage(SR.ColorEditorStandardTab); 164_systemTabPage = new TabPage(SR.ColorEditorSystemTab);
System.Windows.Forms.Design.Tests (4)
System\Windows\Forms\Design\TabControlDesignerTests.cs (2)
29TabPage tabPage = new(); 45using TabPage tabPage = new();
System\Windows\Forms\Design\TabPageDesignerTests.cs (2)
15TabPage tabPage = new(); 53using TabPage tabPage = new();
System.Windows.Forms.Tests (526)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
372pages.Add(new TabPage());
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (18)
19pages.Add(new TabPage()); 36using TabPage tabPage = new(); 59pages.Add(new TabPage() { Text = text, Name = "Test" }); 73pages.Add(new TabPage()); 87pages.Add(new TabPage()); 104pages.Add(new TabPage()); 145pages.Add(new TabPage()); 159pages.Add(new TabPage()); 199pages.Add(new TabPage()); 262pages.Add(new TabPage()); 276pages.Add(new TabPage()); 290pages.Add(new TabPage()); 304pages.Add(new TabPage()); 318pages.Add(new TabPage()); 332pages.Add(new TabPage()); 1082pages.Add(new TabPage() { Enabled = tabPageEnabled }); 1097pages.Add(new TabPage()); 1112pages.Add(new TabPage());
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (26)
16using TabPage tabPage = new(); 26using TabPage tabPage = new(); 41using TabPage tabPage = new(); 71using TabPage tabPage = new(); 86using TabPage tabPage = new(); 106using TabPage tabPage = new() 125using TabPage tabPage = new(); 139using TabPage tabPage = new(); 157using TabPage tabPage = new(); 173using TabPage tabPage = new() { Enabled = enabled }; 189using TabPage tabPage = new(); 207pages.Add(new TabPage()); 226pages.Add(new TabPage()); 342using TabPage tabPage = new(); 353using TabPage tabPage = new(); 364using TabPage tabPage = new(); 375using TabPage tabPage = new(); 386using TabPage tabPage = new(); 397using TabPage tabPage = new(); 414pages.Add(new TabPage() { Enabled = tabPageEnabled }); 428using TabPage tabPage = new(); 448using TabPage tabPage = new() { Text = text }; 468using TabPage tabPage = new() { Text = text }; 486using TabPage tabPage = new() 516using TabPage tabPage = new(); 529using TabPage tabPage = new();
System\Windows\Forms\ContainerControlTests.cs (2)
801using TabPage grandchild3 = new(); 1027using TabPage grandchild3 = new();
System\Windows\Forms\ControlTests.Handlers.cs (2)
3893TabPage tabPage = new() 3934TabPage tabPage = new()
System\Windows\Forms\ScrollableControlTests.cs (2)
1572Func<TabPage> tabPageFactory = () => new TabPage 1667static TabPage CreateTabPage() => new()
System\Windows\Forms\TabControl.ControlCollectionTests.cs (37)
45using TabPage value1 = new(); 46using TabPage value2 = new(); 168using TabPage value1 = new(); 169using TabPage value2 = new(); 328using TabPage value1 = new(); 329using TabPage value2 = new(); 469using TabPage value1 = new(); 470using TabPage value2 = new(); 660using TabPage value = new(); 691using TabPage value = new() 717using TabPage value = new(); 738TabPage value = new(); 757using TabPage page1 = new(); 758using TabPage page2 = new() 825using TabPage page1 = new(); 826using TabPage page2 = new() 894using TabPage value1 = new(); 895using TabPage value2 = new(); 992using TabPage value1 = new(); 993using TabPage value2 = new(); 1119using TabPage value1 = new(); 1120using TabPage value2 = new(); 1231using TabPage value1 = new(); 1232using TabPage value2 = new(); 1353using TabPage value1 = new(); 1354using TabPage value2 = new(); 1355using TabPage value3 = new(); 1356using TabPage value4 = new(); 1390using TabPage value1 = new(); 1391using TabPage value2 = new(); 1392using TabPage value3 = new(); 1393using TabPage value4 = new(); 1433TabPage value = new(); 1466using TabPage page1 = new(); 1467using TabPage page2 = new() 1524using TabPage page1 = new(); 1525using TabPage page2 = new()
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (205)
30using TabPage value1 = new(); 31using TabPage value2 = new(); 156using TabPage value1 = new(); 157using TabPage value2 = new(); 319using TabPage value1 = new(); 320using TabPage value2 = new(); 463using TabPage value1 = new(); 464using TabPage value2 = new(); 657using TabPage value = new(); 690using TabPage value = new() 718using TabPage value = new(); 741TabPage value = new(); 761using TabPage page1 = new(); 762using TabPage page2 = new() 831using TabPage page1 = new(); 832using TabPage page2 = new() 977using TabPage value1 = new(); 978using TabPage value2 = new(); 1101using TabPage child1 = new(); 1102using TabPage child2 = new(); 1103using TabPage child3 = new(); 1201using TabPage child1 = new(); 1202using TabPage child2 = new(); 1217using TabPage child = new(); 1229using TabPage child = new(); 1268using TabPage child1 = new(); 1269using TabPage child2 = new(); 1284using TabPage child1 = new(); 1285using TabPage child2 = new(); 1336using TabPage child1 = new(); 1337using TabPage child2 = new(); 1338using TabPage child3 = new(); 1449using TabPage child1 = new(); 1450using TabPage child2 = new(); 1451using TabPage child3 = new(); 1526using TabPage child1 = new(); 1527using TabPage child2 = new(); 1528using TabPage child3 = new(); 1545using TabPage child1 = new(); 1546using TabPage child2 = new(); 1555Assert.False(collection.Contains(new TabPage())); 1563Assert.False(collection.Contains(new TabPage())); 1578using TabPage child1 = new(); 1579using TabPage child2 = new(); 1587Assert.False(iList.Contains(new TabPage())); 1599Assert.False(iList.Contains(new TabPage())); 1618using TabPage child1 = new() 1622using TabPage child2 = new() 1626using TabPage child3 = new() 1683using TabPage child1 = new(); 1684using TabPage child2 = new(); 1685using TabPage child3 = new(); 1722using TabPage child = new(); 1745using TabPage child1 = new(); 1746using TabPage child2 = new(); 1747using TabPage child3 = new(); 1781using TabPage child1 = new(); 1782using TabPage child2 = new(); 1783using TabPage child3 = new(); 1850using TabPage child1 = new(); 1851using TabPage child2 = new(); 1860Assert.Equal(-1, collection.IndexOf(new TabPage())); 1868Assert.Equal(-1, collection.IndexOf(new TabPage())); 1883using TabPage child1 = new(); 1884using TabPage child2 = new(); 1892Assert.Equal(-1, iList.IndexOf(new TabPage())); 1904Assert.Equal(-1, iList.IndexOf(new TabPage())); 1923using TabPage child1 = new() 1927using TabPage child2 = new() 1931using TabPage child3 = new() 1972using TabPage value1 = new(); 1973using TabPage value2 = new(); 2093using TabPage value1 = new(); 2094using TabPage value2 = new(); 2262using TabPage value1 = new(); 2263using TabPage value2 = new(); 2412using TabPage value1 = new(); 2413using TabPage value2 = new(); 2612using TabPage value = new(); 2643using TabPage value = new() 2669using TabPage value = new(); 2691TabPage value = new(); 2789using TabPage page1 = new(); 2790using TabPage page2 = new() 2857using TabPage page1 = new(); 2858using TabPage page2 = new() 2915using TabPage value = new(); 2931using TabPage value = new(); 2947using TabPage value = new(); 2960using TabPage value = new(); 2971using TabPage child = new(); 2976using TabPage value = new(); 2992using TabPage child = new(); 2999using TabPage value = new(); 3017using TabPage value1 = new(); 3018using TabPage value2 = new(); 3152using TabPage value = new(); 3165using TabPage value = new(); 3178using TabPage value = new(); 3192using TabPage value = new(); 3203using TabPage child = new(); 3207using TabPage value = new(); 3219using TabPage child = new(); 3225using TabPage value = new(); 3237using TabPage child1 = new() 3241using TabPage child2 = new() 3245using TabPage child3 = new() 3273using TabPage child1 = new() 3277using TabPage child2 = new() 3281using TabPage child3 = new() 3317using TabPage page1 = new(); 3318using TabPage page2 = new(); 3346using TabPage page = new(); 3361using TabPage page1 = new(); 3362using TabPage page2 = new(); 3363using TabPage page3 = new(); 3371using TabPage newPage = new(); 3406using TabPage page1 = new(); 3407using TabPage page2 = new(); 3408using TabPage page3 = new(); 3416using TabPage newPage = new(); 3438using TabPage page1 = new(); 3439using TabPage page2 = new(); 3440using TabPage page3 = new(); 3456using TabPage newPage = new(); 3494using TabPage page1 = new(); 3495using TabPage page2 = new(); 3496using TabPage page3 = new(); 3512using TabPage newPage = new(); 3538using TabPage page1 = new(); 3539using TabPage page2 = new(); 3549using TabPage value = new() 3610using TabPage page1 = new(); 3611using TabPage page2 = new(); 3621using TabPage value = new() 3665using TabPage page = new(); 3678using TabPage page = new(); 3693using TabPage page = new(); 3705using TabPage page1 = new(); 3706using TabPage page2 = new(); 3718using TabPage page1 = new(); 3719using TabPage page2 = new(); 3747using TabPage page = new(); 3761using TabPage page1 = new(); 3762using TabPage page2 = new(); 3763using TabPage page3 = new(); 3770using TabPage newPage = new(); 3805using TabPage page1 = new(); 3806using TabPage page2 = new(); 3807using TabPage page3 = new(); 3814using TabPage newPage = new(); 3836using TabPage page1 = new(); 3837using TabPage page2 = new(); 3838using TabPage page3 = new(); 3853using TabPage newPage = new(); 3891using TabPage page1 = new(); 3892using TabPage page2 = new(); 3893using TabPage page3 = new(); 3908using TabPage newPage = new(); 3938using TabPage page = new(); 3952using TabPage page = new(); 3965using TabPage page1 = new(); 3966using TabPage page2 = new(); 3980using TabPage value1 = new(); 3981using TabPage value2 = new(); 4081using TabPage value1 = new(); 4082using TabPage value2 = new(); 4211using TabPage value1 = new(); 4212using TabPage value2 = new(); 4328using TabPage value1 = new(); 4329using TabPage value2 = new(); 4455using TabPage value1 = new(); 4456using TabPage value2 = new(); 4457using TabPage value3 = new(); 4458using TabPage value4 = new(); 4494using TabPage value1 = new(); 4495using TabPage value2 = new(); 4496using TabPage value3 = new(); 4497using TabPage value4 = new(); 4539TabPage value = new(); 4561using TabPage value = new(); 4569using TabPage page1 = new(); 4570using TabPage page2 = new(); 4576using TabPage value = new(); 4584using TabPage page1 = new(); 4585using TabPage page2 = new() 4644using TabPage page1 = new(); 4645using TabPage page2 = new() 4701using TabPage value1 = new(); 4702using TabPage value2 = new(); 4812using TabPage child1 = new(); 4813using TabPage child2 = new(); 4881using TabPage child = new(); 4895using TabPage child1 = new() 4899using TabPage child2 = new() 4903using TabPage child3 = new() 4971using TabPage child1 = new() 4975using TabPage child2 = new() 4979using TabPage child3 = new() 5003using TabPage page1 = new(); 5004using TabPage page2 = new(); 5005using TabPage page3 = new(); 5030using TabPage page1 = new(); 5031using TabPage page2 = new(); 5032using TabPage page3 = new();
System\Windows\Forms\TabControlCancelEventArgsTests.cs (3)
11yield return new object[] { new TabPage(), -1, true, TabControlAction.Selecting }; 12yield return new object[] { new TabPage(), 0, false, TabControlAction.Selected }; 13yield return new object[] { new TabPage(), 1, true, TabControlAction.Selected };
System\Windows\Forms\TabControlEventArgsTests.cs (3)
11yield return new object[] { new TabPage(), -1, TabControlAction.Selecting }; 12yield return new object[] { new TabPage(), 0, TabControlAction.Selected }; 13yield return new object[] { new TabPage(), 1, TabControlAction.Selected };
System\Windows\Forms\TabControlTests.cs (106)
1045using TabPage page1 = new(); 1046using TabPage page2 = new() 1259using TabPage page1 = new(); 1260using TabPage page2 = new(); 1455using TabPage page1 = new(); 1456using TabPage page2 = new(); 2016using TabPage page1 = new(); 2017using TabPage page2 = new(); 2051using TabPage page1 = new(); 2052using TabPage page2 = new(); 2118using TabPage page1 = new(); 2119using TabPage page2 = new(); 2522using TabPage page1 = new(); 2523using TabPage page2 = new(); 2551yield return new object[] { new TabPage() }; 2577using TabPage page1 = new(); 2578using TabPage page2 = new(); 2579using TabPage page3 = new(); 2669using TabPage page1 = new(); 2670using TabPage page2 = new(); 2671using TabPage page3 = new(); 3015using TabPage page1 = new(); 3016using TabPage page2 = new(); 3066using TabPage page1 = new(); 3067using TabPage page2 = new(); 3174using TabPage page = new(); 3182using TabPage page1 = new(); 3183using TabPage page2 = new(); 3184using TabPage page3 = new(); 3194using TabPage page1 = new() 3198using TabPage page2 = new() 3251using TabPage page1 = new() 3255using TabPage page2 = new() 3383using TabPage page1 = new(); 3384using TabPage page2 = new(); 3394using TabPage page1 = new(); 3395using TabPage page2 = new(); 3445using TabPage page1 = new(); 3446using TabPage page2 = new(); 3566using TabPage page1 = new(); 3567using TabPage page2 = new(); 3618using TabPage page1 = new(); 3619using TabPage page2 = new(); 3643using TabPage page1 = new(); 3644using TabPage page2 = new(); 3654using TabPage page1 = new(); 3655using TabPage page2 = new(); 3679using TabPage page1 = new(); 3680using TabPage page2 = new(); 3724using TabPage page = new(); 3753using TabPage page = new(); 3792using TabPage page1 = new(); 3813using TabPage page1 = new(); 3842using TabPage page1 = new(); 3870using TabPage page1 = new(); 3910using TabPage page1 = new(); 3921using TabPage page1 = new(); 3969using TabPage item = new() 4142using TabPage page1 = new(); 4143using TabPage page2 = new(); 4278using TabPage page1 = new(); 4279using TabPage page2 = new(); 4453using TabPage page1 = new(); 4454using TabPage page2 = new(); 4616using TabPage page1 = new(); 4617using TabPage page2 = new(); 4691using TabPage page1 = new(); 4692using TabPage page2 = new(); 4772using TabPage page1 = new(); 4773using TabPage page2 = new(); 4881using TabPage page1 = new(); 4882using TabPage page2 = new(); 4919using TabPage page1 = new(); 4920using TabPage page2 = new() 5002using TabPage child1 = new(); 5003using TabPage child2 = new(); 5004using TabPage child3 = new(); 5107using TabPage child1 = new(); 5108using TabPage child2 = new(); 5109using TabPage child3 = new(); 5179using TabPage child1 = new(); 5180using TabPage child2 = new(); 5181using TabPage child3 = new(); 5195using TabPage page1 = new(); 5196using TabPage page2 = new(); 5235using TabPage page1 = new(); 5236using TabPage page2 = new(); 5330using TabPage page = new(); 5338using TabPage page1 = new(); 5339using TabPage page2 = new(); 5340using TabPage page3 = new(); 5350using TabPage page1 = new() 5354using TabPage page2 = new() 5396using TabPage page1 = new() 5400using TabPage page2 = new() 5508using TabPage page1 = new(); 5509using TabPage page2 = new(); 5510using TabPage page3 = new(); 5520using TabPage page1 = new(); 5521using TabPage page2 = new(); 5560using TabPage page1 = new(); 5561using TabPage page2 = new(); 5661using TabPage page1 = new(); 5662using TabPage page2 = new(); 5679using TabPage page1 = new("text1"); 5680using TabPage page2 = new("text2");
System\Windows\Forms\TabPageTests.cs (110)
259using TabPage control = new() 278using TabPage control = new() 299using TabPage control = new() 320using TabPage control = new(); 345using TabPage control = new() 530using TabPage control = new() 548using TabPage control = new() 575using TabPage control = new() 591using TabPage control = new() 634using TabPage control = new() 647using TabPage control = new() 664using TabPage control = new() 706using TabPage control = new() 748using TabPage control = new() 791using TabPage control = new() 834using TabPage control = new(); 862using TabPage control = new(); 898using TabPage control = new() 915using TabPage control = new() 934using TabPage control = new() 952using TabPage control = new() 991using TabPage control = new(); 999using TabPage control = new() 1062using TabPage control = new() 1103using TabPage control = new() 1127using TabPage control = new() 1167using TabPage control = new() 1193using TabPage control = new() 1217using TabPage control = new(); 1253using TabPage control = new() 1319using TabPage control = new() 1372using TabPage page1 = new(); 1373using TabPage page2 = new() 1439using TabPage page1 = new(); 1440using TabPage page2 = new() 1489using TabPage control = new(); 1497using TabPage control = new() 1519using TabPage control = new() 1556using TabPage control = new() 1579using TabPage control = new() 1599using TabPage control = new(); 1633using TabPage control = new() 1697using TabPage control = new() 1747using TabPage page1 = new(); 1748using TabPage page2 = new() 1811using TabPage page1 = new(); 1812using TabPage page2 = new() 1871using TabPage control = new(); 2310using TabPage control = new(); 2365using TabPage control = new(); 2393using TabPage control = new(); 2421using TabPage control = new() 2446using TabPage control = new() 2483using TabPage control = new() 2501using TabPage control = new() 2522using TabPage control = new() 2541using TabPage control = new(); 2570using TabPage control = new(); 2605using TabPage control = new(); 2614using TabPage control = new(); 2625using TabPage control = new() 2641using TabPage control = new() 2679using TabPage control = new(); 2687using TabPage control = new() 2709using TabPage control = new(); 2745using TabPage control = new() 2784using TabPage control = new() 2802using TabPage control = new() 2838using TabPage control = new() 2860using TabPage control = new(); 2890using TabPage control = new() 2952using TabPage control = new() 3004using TabPage page1 = new(); 3005using TabPage page2 = new() 3071using TabPage page1 = new(); 3072using TabPage page2 = new() 3120using TabPage control = new(); 3156using TabPage control = new() 3174using TabPage control = new() 3210using TabPage control = new() 3232using TabPage control = new(); 3264using TabPage control = new() 3328using TabPage control = new() 3376using TabPage page1 = new(); 3377using TabPage page2 = new() 3440using TabPage page1 = new(); 3441using TabPage page2 = new() 3491using TabPage control = new() 3514using TabPage control = new(); 3551using TabPage control = new() 3574using TabPage control = new() 3648using TabPage control = new() 3705using TabPage control = new() 3813using TabPage grandparent = new(); 4882using TabPage control = new(); 4889using TabPage control = new("text"); 4903using TabPage control = new(); 4916using TabPage control = new(); 4933using TabPage control = new(); 4944using TabPage control = new(); 4964tabControl.TabPages.Add(new TabPage()); 4999using TabPage control = new(); 5012using TabPage control = new(); 5031using TabPage page = new(); 5043using TabPage control = new(); 5055using TabPage control = new(); 5087using TabPage control = new(); 5123using TabPage control = new(); 5154using TabPage control = new(); 5180using TabPage control = new();
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (4)
11using TabPage owner = new(); 27using TabPage owner = new(); 104using TabPage owner = new(); 105using TabPage control = new();
System\Windows\Forms\ToolStripTests.cs (2)
5914TabPage tabPage = new() 5962TabPage tabPage = new()
System\Windows\Forms\ToolTipTests.cs (3)
839using TabPage tabPage = new() { ToolTipText = "TabPage" }; 880using TabPage tabPage1 = new(); 881using TabPage tabPage2 = new();
System\Windows\Forms\UserControlTests.cs (2)
1267using TabPage grandchild3 = new(); 1493using TabPage grandchild3 = new();
System.Windows.Forms.UI.IntegrationTests (5)
TabControlTests.cs (5)
88TabPage tabPage1 = new(); 89TabPage tabPage2 = new(); 138TabPage tabPage1 = new() { Text = "Page 1" }; 139TabPage tabPage2 = new() { Text = "Page 2" }; 140TabPage tabPage3 = new() { Text = "Page 3" };
WinFormsControlsTest (4)
MultipleControls.Designer.cs (2)
42this.tabPage1 = new System.Windows.Forms.TabPage(); 44this.tabPage2 = new System.Windows.Forms.TabPage();
ScrollableControls.Designer.cs (2)
68tabPage1 = new TabPage(); 70tabPage2 = new TabPage();
823 references to TabPage
Accessibility_Core_App (12)
ContainerControls.Designer.cs (10)
885private System.Windows.Forms.TabPage tabPage9; 887private System.Windows.Forms.TabPage tabPage10; 889private System.Windows.Forms.TabPage tabPage11; 891private System.Windows.Forms.TabPage tabPage12; 899private System.Windows.Forms.TabPage tabPage1; 900private System.Windows.Forms.TabPage tabPage2; 905private System.Windows.Forms.TabPage tabPage3; 907private System.Windows.Forms.TabPage tabPage4; 915private System.Windows.Forms.TabPage tabPage5; 916private System.Windows.Forms.TabPage tabPage6;
ContainerControls2.Designer.cs (2)
481private System.Windows.Forms.TabPage tabPage7; 482private System.Windows.Forms.TabPage tabPage8;
DesignSurface (6)
MainForm.Designer.cs (6)
334private System.Windows.Forms.TabPage tabPage1; 335private System.Windows.Forms.TabPage tabPage2; 336private System.Windows.Forms.TabPage tabPage3; 337private System.Windows.Forms.TabPage tabPage4; 338private System.Windows.Forms.TabPage tabPage5; 339private System.Windows.Forms.TabPage tabPage6;
PresentationUI (2)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (2)
780private System.Windows.Forms.TabPage _infoTab; 804private System.Windows.Forms.TabPage _summaryTab;
System.Windows.Forms (69)
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (2)
23if (value is not TabPage tabPage) 69if (value is not TabPage tabPage)
System\Windows\Forms\Controls\TabControl\TabControl.cs (27)
67private readonly List<TabPage> _tabPages = []; 479foreach (TabPage tabPage in TabPages) 723public TabPage? SelectedTab 917private int AddTabPage(TabPage tabPage) 928private int AddNativeTabPage(TabPage tabPage) 979TabPage t = GetTabPage(index); 996public void DeselectTab(TabPage tabPage) 1011TabPage tabPage = TabPages[tabPageName]!; 1038internal int FindTabPage(TabPage? tabPage) 1056internal TabPage GetTabPage(int index) 1074return Array.Empty<TabPage>(); 1095internal TabPage[] GetTabPages() 1097return (TabPage[])GetItems(); 1130if (item is not TabPage tabPage) 1146internal void Insert(int index, TabPage tabPage) 1161private void InsertItem(int index, TabPage tabPage) 1191private static void NotifyAboutFocusState(TabPage? selectedTab, bool focused) 1267foreach (TabPage page in TabPages) 1535TabPage[] tabPages = GetTabPages(); 1614TabPage[] pages = GetTabPages(); 1636private void SetTabPage(int index, TabPage value) 1661TabPage t = GetTabPage(index); 1671public void SelectTab(TabPage tabPage) 1686TabPage tabPage = TabPages[tabPageName]!; 1810TabPage[] tabPages = GetTabPages(); 1895internal void UpdateTab(TabPage tabPage) 2108private unsafe int SendMessage(uint msg, int wParam, TabPage tabPage)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
97foreach (TabPage tabPage in owner.TabPages)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (19)
26public virtual TabPage this[int index] 37if (value is not TabPage tabPage) 49public virtual TabPage? this[string? key] 81public void Add(TabPage value) 90if (value is not TabPage tabPage) 124public void AddRange(params TabPage[] pages) 128foreach (TabPage page in pages) 134public bool Contains(TabPage page) 143if (page is not TabPage tabPage) 159public int IndexOf(TabPage page) 176if (page is not TabPage tabPage) 221public void Insert(int index, TabPage tabPage) 240if (tabPage is not TabPage actualTabPage) 261TabPage page = new() 275TabPage page = new() 306TabPage[] tabPages = _owner.GetTabPages(); 309return Array.Empty<TabPage>().GetEnumerator(); 315public void Remove(TabPage value) 328if (value is TabPage tabPage)
System\Windows\Forms\Controls\TabControl\TabControlCancelEventArgs.cs (2)
15TabPage? tabPage, 29public TabPage? TabPage { get; }
System\Windows\Forms\Controls\TabControl\TabControlEventArgs.cs (2)
14public TabControlEventArgs(TabPage? tabPage, int tabPageIndex, TabControlAction action) 24public TabPage? TabPage { get; }
System\Windows\Forms\Controls\TabControl\TabPage.cs (4)
205TabPage? selectedTab = tabControl.SelectedTab; 497public static TabPage? GetTabPageOfComponent(object? comp) 505while (c is not null and not TabPage) 510return (TabPage?)c;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
14private readonly TabPage _owningTabPage; 16public TabAccessibleObject(TabPage owningTabPage)
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (8)
14public TabPageAccessibleObject(TabPage owningTabPage) : base(owningTabPage) { } 16internal override Rectangle BoundingRectangle => this.IsOwnerHandleCreated(out TabPage? owner) ? 24this.TryGetOwnerAs(out TabPage? owningTabPage) ? owningTabPage.ParentInternal as TabControl : null; 28if (!this.IsOwnerHandleCreated(out TabPage? owningTabPage)) 44=> this.IsOwnerHandleCreated(out TabPage? owningTabPage) ? owningTabPage.Controls.Count : -1; 48if (!this.IsOwnerHandleCreated(out TabPage? _) || OwningTabControl is null) 67UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out TabPage? owningTabPage) && owningTabPage.Focused), 84if (!this.TryGetOwnerAs(out TabPage? owningTabPage) || OwningTabControl is null || owningTabPage != OwningTabControl.SelectedTab)
System\Windows\Forms\Controls\TabControl\TabPage.TabPageControlCollection.cs (2)
16public TabPageControlCollection(TabPage owner) : base(owner) 29if (value is TabPage)
System.Windows.Forms.Design (20)
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorTabControl.cs (1)
20TabPage? selectedTab = SelectedTab;
System\Drawing\Design\ColorEditor.ColorUI.cs (5)
21private TabPage _systemTabPage; 22private TabPage _commonTabPage; 23private TabPage _paletteTabPage; 323TabPage? selectedPage = _tabControl.SelectedTab; 366TabPage selectedTab = _paletteTabPage;
System\Windows\Forms\Design\TabControlDesigner.cs (12)
112public override bool CanParent(Control control) => (control is TabPage && !Control.Contains(control)); 187internal static TabPage GetTabPageOfComponent(TabControl parent, object comp) 197TabPage page = c as TabPage; 263TabPage page = (TabPage)host.CreateComponent(typeof(TabPage)); 334TabPage tp = tc.SelectedTab; 417TabPage page = GetTabPageOfComponent(tabControl, comp); 445TabPage page = GetTabPageOfComponent(tabControl, comp); 485TabPage selectedTab = ((TabControl)Component).SelectedTab; 511if (!(dragControls[i] is Control) || (dragControls[i] is Control && !(dragControls[i] is TabPage)))
System\Windows\Forms\Design\TabPageCollectionEditor.cs (2)
38TabPage tabPage = (TabPage)instance;
System.Windows.Forms.Design.Tests (12)
EnsureEditorsTests.cs (2)
126[InlineData(typeof(TabPage), "ImageIndex", typeof(ImageIndexEditor))] 127[InlineData(typeof(TabPage), "ImageKey", typeof(ImageIndexEditor))]
System\Windows\Forms\Design\TabControlDesignerTests.cs (7)
25private (TabControlDesigner designer, TabControl tabControl, TabPage tabPage) CreateDesignerWithMockedHost() 29TabPage tabPage = new(); 33designerHost.Setup(h => h.CreateComponent(typeof(TabPage))).Returns(tabPage); 45using TabPage tabPage = new(); 47designerHost.Setup(h => h.CreateComponent(typeof(TabPage))).Returns(tabPage); 56[InlineData(typeof(TabPage), true)] 67if (control is TabPage tabPage && !expected)
System\Windows\Forms\Design\TabPageDesignerTests.cs (3)
13private (TabPageDesigner designer, TabPage tabPage) InitializeDesignerWithTabPage() 15TabPage tabPage = new(); 53using TabPage tabPage = new();
System.Windows.Forms.Tests (692)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1733or TabPage);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (4)
6using static System.Windows.Forms.TabPage; 36using TabPage tabPage = new(); 44static void EnforceTabAccessibilityObjectCreation(TabPage tabPage) 1129internal SubTabAccessibleObject(TabPage owningTabPage) : base(owningTabPage)
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (24)
7using static System.Windows.Forms.TabPage; 16using TabPage tabPage = new(); 26using TabPage tabPage = new(); 41using TabPage tabPage = new(); 71using TabPage tabPage = new(); 86using TabPage tabPage = new(); 106using TabPage tabPage = new() 125using TabPage tabPage = new(); 139using TabPage tabPage = new(); 157using TabPage tabPage = new(); 173using TabPage tabPage = new() { Enabled = enabled }; 189using TabPage tabPage = new(); 342using TabPage tabPage = new(); 353using TabPage tabPage = new(); 364using TabPage tabPage = new(); 375using TabPage tabPage = new(); 386using TabPage tabPage = new(); 397using TabPage tabPage = new(); 428using TabPage tabPage = new(); 448using TabPage tabPage = new() { Text = text }; 468using TabPage tabPage = new() { Text = text }; 486using TabPage tabPage = new() 516using TabPage tabPage = new(); 529using TabPage tabPage = new();
System\Windows\Forms\ContainerControlTests.cs (2)
801using TabPage grandchild3 = new(); 1027using TabPage grandchild3 = new();
System\Windows\Forms\ControlTests.Handlers.cs (2)
3893TabPage tabPage = new() 3934TabPage tabPage = new()
System\Windows\Forms\ScrollableControlTests.cs (2)
1572Func<TabPage> tabPageFactory = () => new TabPage 1667static TabPage CreateTabPage() => new()
System\Windows\Forms\TabControl.ControlCollectionTests.cs (64)
45using TabPage value1 = new(); 46using TabPage value2 = new(); 87Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 115Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 168using TabPage value1 = new(); 169using TabPage value2 = new(); 226Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 267Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 328using TabPage value1 = new(); 329using TabPage value2 = new(); 387Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 421Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 469using TabPage value1 = new(); 470using TabPage value2 = new(); 544Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 591Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 660using TabPage value = new(); 691using TabPage value = new() 717using TabPage value = new(); 735List<TabPage> items = []; 738TabPage value = new(); 742Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 757using TabPage page1 = new(); 758using TabPage page2 = new() 825using TabPage page1 = new(); 826using TabPage page2 = new() 894using TabPage value1 = new(); 895using TabPage value2 = new(); 992using TabPage value1 = new(); 993using TabPage value2 = new(); 1119using TabPage value1 = new(); 1120using TabPage value2 = new(); 1231using TabPage value1 = new(); 1232using TabPage value2 = new(); 1353using TabPage value1 = new(); 1354using TabPage value2 = new(); 1355using TabPage value3 = new(); 1356using TabPage value4 = new(); 1367Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 1372Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 1377Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 1390using TabPage value1 = new(); 1391using TabPage value2 = new(); 1392using TabPage value3 = new(); 1393using TabPage value4 = new(); 1405Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 1410Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 1415Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 1430List<TabPage> items = []; 1433TabPage value = new(); 1437Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 1446Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 1466using TabPage page1 = new(); 1467using TabPage page2 = new() 1524using TabPage page1 = new(); 1525using TabPage page2 = new()
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (330)
30using TabPage value1 = new(); 31using TabPage value2 = new(); 72Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 73Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 101Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 102Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 156using TabPage value1 = new(); 157using TabPage value2 = new(); 214Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 215Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 256Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 257Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 319using TabPage value1 = new(); 320using TabPage value2 = new(); 378Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 379Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 413Assert.Equal(new TabPage[] { value1, value2, value1, }, collection.Cast<TabPage>()); 414Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 463using TabPage value1 = new(); 464using TabPage value2 = new(); 538Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 539Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 586Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 587Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 657using TabPage value = new(); 690using TabPage value = new() 718using TabPage value = new(); 738List<TabPage> items = []; 741TabPage value = new(); 744Assert.Equal(items, collection.Cast<TabPage>()); 745Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 761using TabPage page1 = new(); 762using TabPage page2 = new() 831using TabPage page1 = new(); 832using TabPage page2 = new() 883Assert.Throws<ArgumentNullException>("value", () => collection.Add((TabPage)null)); 896TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 917TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 938TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 959TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 977using TabPage value1 = new(); 978using TabPage value2 = new(); 1019Assert.Equal(new TabPage[] { value1, value2 }, collection.Cast<TabPage>()); 1020Assert.Equal(new TabPage[] { value1, value2 }, owner.TabPages.Cast<TabPage>()); 1047Assert.Equal(new TabPage[] { value1, value2, value1 }, collection.Cast<TabPage>()); 1048Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.TabPages.Cast<TabPage>()); 1101using TabPage child1 = new(); 1102using TabPage child2 = new(); 1103using TabPage child3 = new(); 1114Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>()); 1126Assert.Equal(new TabPage[] { child1, child2, child3, child1, child2, child3 }, collection.Cast<TabPage>()); 1138collection.AddRange(Array.Empty<TabPage>()); 1139Assert.Equal(new TabPage[] { child1, child2, child3, child1, child2, child3 }, collection.Cast<TabPage>()); 1201using TabPage child1 = new(); 1202using TabPage child2 = new(); 1217using TabPage child = new(); 1229using TabPage child = new(); 1268using TabPage child1 = new(); 1269using TabPage child2 = new(); 1284using TabPage child1 = new(); 1285using TabPage child2 = new(); 1336using TabPage child1 = new(); 1337using TabPage child2 = new(); 1338using TabPage child3 = new(); 1449using TabPage child1 = new(); 1450using TabPage child2 = new(); 1451using TabPage child3 = new(); 1526using TabPage child1 = new(); 1527using TabPage child2 = new(); 1528using TabPage child3 = new(); 1545using TabPage child1 = new(); 1546using TabPage child2 = new(); 1578using TabPage child1 = new(); 1579using TabPage child2 = new(); 1618using TabPage child1 = new() 1622using TabPage child2 = new() 1626using TabPage child3 = new() 1683using TabPage child1 = new(); 1684using TabPage child2 = new(); 1685using TabPage child3 = new(); 1722using TabPage child = new(); 1745using TabPage child1 = new(); 1746using TabPage child2 = new(); 1747using TabPage child3 = new(); 1781using TabPage child1 = new(); 1782using TabPage child2 = new(); 1783using TabPage child3 = new(); 1850using TabPage child1 = new(); 1851using TabPage child2 = new(); 1883using TabPage child1 = new(); 1884using TabPage child2 = new(); 1923using TabPage child1 = new() 1927using TabPage child2 = new() 1931using TabPage child3 = new() 1972using TabPage value1 = new(); 1973using TabPage value2 = new(); 2014Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2015Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2045Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2046Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2093using TabPage value1 = new(); 2094using TabPage value2 = new(); 2151Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2152Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2195Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2196Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2262using TabPage value1 = new(); 2263using TabPage value2 = new(); 2321Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2322Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2358Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2359Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2412using TabPage value1 = new(); 2413using TabPage value2 = new(); 2487Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 2488Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 2537Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 2538Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 2612using TabPage value = new(); 2643using TabPage value = new() 2669using TabPage value = new(); 2688List<TabPage> items = []; 2691TabPage value = new(); 2694Assert.Equal(items, collection.Cast<TabPage>()); 2695Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 2696Assert.Equal(items, owner.Controls.Cast<TabPage>()); 2710TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2730TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2750TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2770TabPage page = Assert.IsType<TabPage>(Assert.Single(collection)); 2789using TabPage page1 = new(); 2790using TabPage page2 = new() 2857using TabPage page1 = new(); 2858using TabPage page2 = new() 2907Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null)); 2915using TabPage value = new(); 2931using TabPage value = new(); 2947using TabPage value = new(); 2960using TabPage value = new(); 2971using TabPage child = new(); 2976using TabPage value = new(); 2992using TabPage child = new(); 2999using TabPage value = new(); 3017using TabPage value1 = new(); 3018using TabPage value2 = new(); 3060Assert.Equal(new TabPage[] { value2, value1 }, collection.Cast<TabPage>()); 3061Assert.Equal(new TabPage[] { value2, value1 }, owner.TabPages.Cast<TabPage>()); 3091Assert.Equal(new TabPage[] { value2, value1, value1 }, collection.Cast<TabPage>()); 3092Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.TabPages.Cast<TabPage>()); 3152using TabPage value = new(); 3165using TabPage value = new(); 3178using TabPage value = new(); 3192using TabPage value = new(); 3203using TabPage child = new(); 3207using TabPage value = new(); 3219using TabPage child = new(); 3225using TabPage value = new(); 3237using TabPage child1 = new() 3241using TabPage child2 = new() 3245using TabPage child3 = new() 3273using TabPage child1 = new() 3277using TabPage child2 = new() 3281using TabPage child3 = new() 3317using TabPage page1 = new(); 3318using TabPage page2 = new(); 3346using TabPage page = new(); 3361using TabPage page1 = new(); 3362using TabPage page2 = new(); 3363using TabPage page3 = new(); 3371using TabPage newPage = new(); 3406using TabPage page1 = new(); 3407using TabPage page2 = new(); 3408using TabPage page3 = new(); 3416using TabPage newPage = new(); 3438using TabPage page1 = new(); 3439using TabPage page2 = new(); 3440using TabPage page3 = new(); 3456using TabPage newPage = new(); 3494using TabPage page1 = new(); 3495using TabPage page2 = new(); 3496using TabPage page3 = new(); 3512using TabPage newPage = new(); 3538using TabPage page1 = new(); 3539using TabPage page2 = new(); 3549using TabPage value = new() 3610using TabPage page1 = new(); 3611using TabPage page2 = new(); 3621using TabPage value = new() 3665using TabPage page = new(); 3678using TabPage page = new(); 3693using TabPage page = new(); 3705using TabPage page1 = new(); 3706using TabPage page2 = new(); 3718using TabPage page1 = new(); 3719using TabPage page2 = new(); 3747using TabPage page = new(); 3761using TabPage page1 = new(); 3762using TabPage page2 = new(); 3763using TabPage page3 = new(); 3770using TabPage newPage = new(); 3805using TabPage page1 = new(); 3806using TabPage page2 = new(); 3807using TabPage page3 = new(); 3814using TabPage newPage = new(); 3836using TabPage page1 = new(); 3837using TabPage page2 = new(); 3838using TabPage page3 = new(); 3853using TabPage newPage = new(); 3891using TabPage page1 = new(); 3892using TabPage page2 = new(); 3893using TabPage page3 = new(); 3908using TabPage newPage = new(); 3938using TabPage page = new(); 3952using TabPage page = new(); 3965using TabPage page1 = new(); 3966using TabPage page2 = new(); 3980using TabPage value1 = new(); 3981using TabPage value2 = new(); 4081using TabPage value1 = new(); 4082using TabPage value2 = new(); 4211using TabPage value1 = new(); 4212using TabPage value2 = new(); 4328using TabPage value1 = new(); 4329using TabPage value2 = new(); 4455using TabPage value1 = new(); 4456using TabPage value2 = new(); 4457using TabPage value3 = new(); 4458using TabPage value4 = new(); 4471Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 4476Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 4481Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 4494using TabPage value1 = new(); 4495using TabPage value2 = new(); 4496using TabPage value3 = new(); 4497using TabPage value4 = new(); 4511Assert.Equal(new Control[] { value1, value3, value4 }, collection.Cast<TabPage>()); 4516Assert.Equal(new Control[] { value1, value3 }, collection.Cast<TabPage>()); 4521Assert.Equal(new Control[] { value3 }, collection.Cast<TabPage>()); 4536List<TabPage> items = []; 4539TabPage value = new(); 4542Assert.Equal(items, collection.Cast<TabPage>()); 4543Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 4551Assert.Equal(items, collection.Cast<TabPage>()); 4552Assert.Equal(items, owner.TabPages.Cast<TabPage>()); 4561using TabPage value = new(); 4569using TabPage page1 = new(); 4570using TabPage page2 = new(); 4576using TabPage value = new(); 4584using TabPage page1 = new(); 4585using TabPage page2 = new() 4644using TabPage page1 = new(); 4645using TabPage page2 = new() 4701using TabPage value1 = new(); 4702using TabPage value2 = new(); 4812using TabPage child1 = new(); 4813using TabPage child2 = new(); 4838Assert.Equal(new TabPage[] { child1 }, collection.Cast<TabPage>()); 4881using TabPage child = new(); 4895using TabPage child1 = new() 4899using TabPage child2 = new() 4903using TabPage child3 = new() 4932Assert.Equal(new TabPage[] { child1, child3 }, collection.Cast<TabPage>()); 4945Assert.Equal(new TabPage[] { child1 }, collection.Cast<TabPage>()); 4971using TabPage child1 = new() 4975using TabPage child2 = new() 4979using TabPage child3 = new() 4991Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>()); 4995Assert.Equal(new TabPage[] { child1, child2, child3 }, collection.Cast<TabPage>()); 5003using TabPage page1 = new(); 5004using TabPage page2 = new(); 5005using TabPage page3 = new(); 5030using TabPage page1 = new(); 5031using TabPage page2 = new(); 5032using TabPage page3 = new();
System\Windows\Forms\TabControlCancelEventArgsTests.cs (1)
18public void Ctor_TabPage_Int_Bool_TabControlAction(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
System\Windows\Forms\TabControlEventArgsTests.cs (1)
18public void Ctor_TabPage_Int_TabControlAction(TabPage tabPage, int tabPageIndex, TabControlAction action)
System\Windows\Forms\TabControlTests.cs (120)
1045using TabPage page1 = new(); 1046using TabPage page2 = new() 1259using TabPage page1 = new(); 1260using TabPage page2 = new(); 1455using TabPage page1 = new(); 1456using TabPage page2 = new(); 2016using TabPage page1 = new(); 2017using TabPage page2 = new(); 2051using TabPage page1 = new(); 2052using TabPage page2 = new(); 2118using TabPage page1 = new(); 2119using TabPage page2 = new(); 2134Assert.Equal(expectedVisible, control.TabPages.Cast<TabPage>().Select(p => p.Visible)); 2143Assert.Equal(expectedVisible, control.TabPages.Cast<TabPage>().Select(p => p.Visible)); 2522using TabPage page1 = new(); 2523using TabPage page2 = new(); 2556public void TabControl_SelectedTab_SetWithoutPages_GetReturnsExpected(TabPage value) 2577using TabPage page1 = new(); 2578using TabPage page2 = new(); 2579using TabPage page3 = new(); 2636public void TabControl_SelectedTab_SetWithoutPagesWithHandle_GetReturnsExpected(TabPage value) 2669using TabPage page1 = new(); 2670using TabPage page2 = new(); 2671using TabPage page3 = new(); 3015using TabPage page1 = new(); 3016using TabPage page2 = new(); 3066using TabPage page1 = new(); 3067using TabPage page2 = new(); 3174using TabPage page = new(); 3182using TabPage page1 = new(); 3183using TabPage page2 = new(); 3184using TabPage page3 = new(); 3194using TabPage page1 = new() 3198using TabPage page2 = new() 3251using TabPage page1 = new() 3255using TabPage page2 = new() 3383using TabPage page1 = new(); 3384using TabPage page2 = new(); 3394using TabPage page1 = new(); 3395using TabPage page2 = new(); 3445using TabPage page1 = new(); 3446using TabPage page2 = new(); 3566using TabPage page1 = new(); 3567using TabPage page2 = new(); 3618using TabPage page1 = new(); 3619using TabPage page2 = new(); 3643using TabPage page1 = new(); 3644using TabPage page2 = new(); 3654using TabPage page1 = new(); 3655using TabPage page2 = new(); 3679using TabPage page1 = new(); 3680using TabPage page2 = new(); 3724using TabPage page = new(); 3753using TabPage page = new(); 3792using TabPage page1 = new(); 3813using TabPage page1 = new(); 3833object[] result = Assert.IsType<TabPage[]>(control.GetItems()); 3842using TabPage page1 = new(); 3846object[] result = Assert.IsType<TabPage[]>(control.GetItems()); 3853[InlineData(typeof(TabPage))] 3864[InlineData(typeof(TabPage))] 3870using TabPage page1 = new(); 3910using TabPage page1 = new(); 3921using TabPage page1 = new(); 3969using TabPage item = new() 4142using TabPage page1 = new(); 4143using TabPage page2 = new(); 4278using TabPage page1 = new(); 4279using TabPage page2 = new(); 4453using TabPage page1 = new(); 4454using TabPage page2 = new(); 4616using TabPage page1 = new(); 4617using TabPage page2 = new(); 4691using TabPage page1 = new(); 4692using TabPage page2 = new(); 4772using TabPage page1 = new(); 4773using TabPage page2 = new(); 4881using TabPage page1 = new(); 4882using TabPage page2 = new(); 4890Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>()); 4898Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>()); 4907Assert.Equal(new TabPage[] { page1, page2 }, control.TabPages.Cast<TabPage>()); 4919using TabPage page1 = new(); 4920using TabPage page2 = new() 5002using TabPage child1 = new(); 5003using TabPage child2 = new(); 5004using TabPage child3 = new(); 5107using TabPage child1 = new(); 5108using TabPage child2 = new(); 5109using TabPage child3 = new(); 5179using TabPage child1 = new(); 5180using TabPage child2 = new(); 5181using TabPage child3 = new(); 5195using TabPage page1 = new(); 5196using TabPage page2 = new(); 5235using TabPage page1 = new(); 5236using TabPage page2 = new(); 5323Assert.Throws<ArgumentNullException>("tabPage", () => control.SelectTab((TabPage)null)); 5330using TabPage page = new(); 5338using TabPage page1 = new(); 5339using TabPage page2 = new(); 5340using TabPage page3 = new(); 5350using TabPage page1 = new() 5354using TabPage page2 = new() 5396using TabPage page1 = new() 5400using TabPage page2 = new() 5508using TabPage page1 = new(); 5509using TabPage page2 = new(); 5510using TabPage page3 = new(); 5520using TabPage page1 = new(); 5521using TabPage page2 = new(); 5560using TabPage page1 = new(); 5561using TabPage page2 = new(); 5661using TabPage page1 = new(); 5662using TabPage page2 = new(); 5679using TabPage page1 = new("text1"); 5680using TabPage page2 = new("text2");
System\Windows\Forms\TabPageTests.cs (125)
54Assert.IsType<TabPage.TabPageControlCollection>(control.Controls); 163Assert.IsType<TabPage.TabPageControlCollection>(control.Controls); 259using TabPage control = new() 278using TabPage control = new() 299using TabPage control = new() 320using TabPage control = new(); 345using TabPage control = new() 530using TabPage control = new() 548using TabPage control = new() 575using TabPage control = new() 591using TabPage control = new() 634using TabPage control = new() 647using TabPage control = new() 664using TabPage control = new() 706using TabPage control = new() 748using TabPage control = new() 791using TabPage control = new() 808.Setup(p => p.GetTypeDescriptor(typeof(TabPage), control)) 834using TabPage control = new(); 862using TabPage control = new(); 898using TabPage control = new() 915using TabPage control = new() 934using TabPage control = new() 952using TabPage control = new() 991using TabPage control = new(); 999using TabPage control = new() 1062using TabPage control = new() 1103using TabPage control = new() 1127using TabPage control = new() 1167using TabPage control = new() 1193using TabPage control = new() 1217using TabPage control = new(); 1253using TabPage control = new() 1319using TabPage control = new() 1372using TabPage page1 = new(); 1373using TabPage page2 = new() 1439using TabPage page1 = new(); 1440using TabPage page2 = new() 1489using TabPage control = new(); 1497using TabPage control = new() 1519using TabPage control = new() 1556using TabPage control = new() 1579using TabPage control = new() 1599using TabPage control = new(); 1633using TabPage control = new() 1697using TabPage control = new() 1747using TabPage page1 = new(); 1748using TabPage page2 = new() 1811using TabPage page1 = new(); 1812using TabPage page2 = new() 1871using TabPage control = new(); 2310using TabPage control = new(); 2364PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)]; 2365using TabPage control = new(); 2392PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TabPage))[nameof(TabPage.Location)]; 2393using TabPage control = new(); 2421using TabPage control = new() 2446using TabPage control = new() 2483using TabPage control = new() 2501using TabPage control = new() 2522using TabPage control = new() 2541using TabPage control = new(); 2570using TabPage control = new(); 2605using TabPage control = new(); 2614using TabPage control = new(); 2625using TabPage control = new() 2641using TabPage control = new() 2679using TabPage control = new(); 2687using TabPage control = new() 2709using TabPage control = new(); 2745using TabPage control = new() 2784using TabPage control = new() 2802using TabPage control = new() 2838using TabPage control = new() 2860using TabPage control = new(); 2890using TabPage control = new() 2952using TabPage control = new() 3004using TabPage page1 = new(); 3005using TabPage page2 = new() 3071using TabPage page1 = new(); 3072using TabPage page2 = new() 3120using TabPage control = new(); 3156using TabPage control = new() 3174using TabPage control = new() 3210using TabPage control = new() 3232using TabPage control = new(); 3264using TabPage control = new() 3328using TabPage control = new() 3376using TabPage page1 = new(); 3377using TabPage page2 = new() 3440using TabPage page1 = new(); 3441using TabPage page2 = new() 3491using TabPage control = new() 3514using TabPage control = new(); 3551using TabPage control = new() 3574using TabPage control = new() 3648using TabPage control = new() 3705using TabPage control = new() 3744Control.ControlCollection controls = Assert.IsType<TabPage.TabPageControlCollection>(control.CreateControlsInstance()); 3813using TabPage grandparent = new(); 3822Assert.Same(grandparent, TabPage.GetTabPageOfComponent(control)); 3823Assert.Same(grandparent, TabPage.GetTabPageOfComponent(parent)); 3824Assert.Same(grandparent, TabPage.GetTabPageOfComponent(grandparent)); 3839Assert.Null(TabPage.GetTabPageOfComponent(control)); 3840Assert.Null(TabPage.GetTabPageOfComponent(parent)); 3841Assert.Null(TabPage.GetTabPageOfComponent(grandparent)); 3849Assert.Null(TabPage.GetTabPageOfComponent(comp)); 4882using TabPage control = new(); 4889using TabPage control = new("text"); 4903using TabPage control = new(); 4916using TabPage control = new(); 4933using TabPage control = new(); 4944using TabPage control = new(); 4967TabPage testedTab = tabControl.TabPages[index]; 4999using TabPage control = new(); 5012using TabPage control = new(); 5031using TabPage page = new(); 5043using TabPage control = new(); 5055using TabPage control = new(); 5087using TabPage control = new(); 5123using TabPage control = new(); 5154using TabPage control = new(); 5180using TabPage control = new();
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (9)
11using TabPage owner = new(); 12var collection = new TabPage.TabPageControlCollection(owner); 21Assert.Throws<ArgumentNullException>("owner", () => new TabPage.TabPageControlCollection(null)); 27using TabPage owner = new(); 30TabPage.TabPageControlCollection collection = Assert.IsType<TabPage.TabPageControlCollection>(owner.Controls); 104using TabPage owner = new(); 105using TabPage control = new(); 106var collection = new TabPage.TabPageControlCollection(owner);
System\Windows\Forms\ToolStripTests.cs (2)
5914TabPage tabPage = new() 5962TabPage tabPage = new()
System\Windows\Forms\ToolTipTests.cs (3)
839using TabPage tabPage = new() { ToolTipText = "TabPage" }; 880using TabPage tabPage1 = new(); 881using TabPage tabPage2 = new();
System\Windows\Forms\UserControlTests.cs (2)
1267using TabPage grandchild3 = new(); 1493using TabPage grandchild3 = new();
System.Windows.Forms.UI.IntegrationTests (6)
TabControlTests.cs (6)
88TabPage tabPage1 = new(); 89TabPage tabPage2 = new(); 104var originalPages = tabControl.TabPages.Cast<TabPage>().ToArray(); 138TabPage tabPage1 = new() { Text = "Page 1" }; 139TabPage tabPage2 = new() { Text = "Page 2" }; 140TabPage tabPage3 = new() { Text = "Page 3" };
WinFormsControlsTest (4)
MultipleControls.Designer.cs (2)
340private System.Windows.Forms.TabPage tabPage1; 342private System.Windows.Forms.TabPage tabPage2;
ScrollableControls.Designer.cs (2)
492private TabPage tabPage1; 494private TabPage tabPage2;