385 references to TabPages
System.Windows.Forms (23)
System\Windows\Forms\Controls\TabControl\TabControl.cs (11)
18
[DefaultProperty(nameof(
TabPages
))]
479
foreach (TabPage tabPage in
TabPages
)
982
if (index >= 0 && index <
TabPages
.Count - 1)
1011
TabPage tabPage =
TabPages
[tabPageName]!;
1267
foreach (TabPage page in
TabPages
)
1553
TabPages
.Add(tabPages[i]);
1686
TabPage tabPage =
TabPages
[tabPageName]!;
1780
if (
TabPages
is not null)
1782
s += $", TabPages.Count: {
TabPages
.Count}";
1783
if (
TabPages
.Count > 0)
1785
s += $", TabPages[0]: {
TabPages
[0]}";
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (8)
47
|| owner.
TabPages
.Count == 0
49
|| index > owner.
TabPages
.Count)
56
: owner.
TabPages
[index - 1].TabAccessibilityObject;
73
if (owner.
TabPages
.Count == 0)
80
return owner.
TabPages
.Count + 1;
97
foreach (TabPage tabPage in owner.
TabPages
)
121
NavigateDirection.NavigateDirection_LastChild => owner.
TabPages
.Count > 0
122
? owner.
TabPages
[^1].TabAccessibilityObject
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
167
int currentIndex = tabControl.
TabPages
.IndexOf(this);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
76
private int CurrentIndex => OwningTabControl?.
TabPages
.IndexOf(_owningTabPage) ?? -1;
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (2)
89
return OwningTabControl.
TabPages
.Count > 0 ? OwningTabControl.
TabPages
[0].TabAccessibilityObject : null;
System.Windows.Forms.Design (7)
System\Drawing\Design\ColorEditor.ColorUI.cs (6)
169
_tabControl.
TabPages
.Add(_paletteTabPage);
170
_tabControl.
TabPages
.Add(_commonTabPage);
171
_tabControl.
TabPages
.Add(_systemTabPage);
309
Rectangle rectTabControl = _tabControl.
TabPages
[0].ClientRectangle;
345
int count = _tabControl.
TabPages
.Count;
347
_tabControl.SelectedTab = _tabControl.
TabPages
[sel];
System\Windows\Forms\Design\TabControlDesigner.cs (1)
326
if (tc is null || tc.
TabPages
.Count == 0)
System.Windows.Forms.Design.Tests (6)
System\Windows\Forms\Design\TabControlDesignerTests.cs (5)
46
tabControl.
TabPages
.Add(tabPage);
51
tabControl.
TabPages
.Count.Should().Be(1);
69
tabControl.
TabPages
.Add(tabPage);
101
tabControl.
TabPages
.Add(tabPage);
149
tabControl.
TabPages
.Add(tabPage);
System\Windows\Forms\Design\TabPageDesignerTests.cs (1)
54
tabControl.
TabPages
.Add(tabPage);
System.Windows.Forms.Tests (336)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (16)
161
TabPageCollection pages = tabControl.
TabPages
;
177
TabPageCollection pages = tabControl.
TabPages
;
214
TabPageCollection pages = tabControl.
TabPages
;
235
TabPageCollection pages = tabControl.
TabPages
;
260
TabPageCollection pages = tabControl.
TabPages
;
275
TabPageCollection pages = tabControl.
TabPages
;
288
TabPageCollection pages = tabControl.
TabPages
;
306
TabPageCollection pages = tabControl.
TabPages
;
324
TabPageCollection pages = tabControl.
TabPages
;
342
TabPageCollection pages = tabControl.
TabPages
;
371
TabPageCollection pages = tabControl.
TabPages
;
387
TabPageCollection pages = tabControl.
TabPages
;
406
TabPageCollection pages = tabControl.
TabPages
;
426
TabPageCollection pages = tabControl.
TabPages
;
454
TabPageCollection pages = tabControl.
TabPages
;
477
TabPageCollection pages = tabControl.
TabPages
;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (55)
18
TabPageCollection pages = tabControl.
TabPages
;
58
TabPageCollection pages = tabControl.
TabPages
;
72
TabPageCollection pages = tabControl.
TabPages
;
86
TabPageCollection pages = tabControl.
TabPages
;
103
TabPageCollection pages = tabControl.
TabPages
;
126
TabPageCollection pages = tabControl.
TabPages
;
144
TabPageCollection pages = tabControl.
TabPages
;
158
TabPageCollection pages = tabControl.
TabPages
;
172
TabPageCollection pages = tabControl.
TabPages
;
198
TabPageCollection pages = tabControl.
TabPages
;
213
TabPageCollection pages = tabControl.
TabPages
;
234
TabPageCollection pages = tabControl.
TabPages
;
261
TabPageCollection pages = tabControl.
TabPages
;
275
TabPageCollection pages = tabControl.
TabPages
;
289
TabPageCollection pages = tabControl.
TabPages
;
303
TabPageCollection pages = tabControl.
TabPages
;
317
TabPageCollection pages = tabControl.
TabPages
;
331
TabPageCollection pages = tabControl.
TabPages
;
345
TabPageCollection pages = tabControl.
TabPages
;
365
TabPageCollection pages = tabControl.
TabPages
;
384
TabPageCollection pages = tabControl.
TabPages
;
404
TabPageCollection pages = tabControl.
TabPages
;
424
TabPageCollection pages = tabControl.
TabPages
;
443
TabPageCollection pages = tabControl.
TabPages
;
463
TabPageCollection pages = tabControl.
TabPages
;
483
TabPageCollection pages = tabControl.
TabPages
;
502
TabPageCollection pages = tabControl.
TabPages
;
524
TabPageCollection pages = tabControl.
TabPages
;
550
TabPageCollection pages = tabControl.
TabPages
;
570
TabPageCollection pages = tabControl.
TabPages
;
593
TabPageCollection pages = tabControl.
TabPages
;
612
TabPageCollection pages = tabControl.
TabPages
;
635
TabPageCollection pages = tabControl.
TabPages
;
657
TabPageCollection pages = tabControl.
TabPages
;
679
TabPageCollection pages = tabControl.
TabPages
;
701
TabPageCollection pages = tabControl.
TabPages
;
724
TabPageCollection pages = tabControl.
TabPages
;
744
TabPageCollection pages = tabControl.
TabPages
;
766
TabPageCollection pages = tabControl.
TabPages
;
789
TabPageCollection pages = tabControl.
TabPages
;
809
TabPageCollection pages = tabControl.
TabPages
;
831
TabPageCollection pages = tabControl.
TabPages
;
851
TabPageCollection pages = tabControl.
TabPages
;
871
TabPageCollection pages = tabControl.
TabPages
;
894
TabPageCollection pages = tabControl.
TabPages
;
914
TabPageCollection pages = tabControl.
TabPages
;
936
TabPageCollection pages = tabControl.
TabPages
;
960
TabPageCollection pages = tabControl.
TabPages
;
983
TabPageCollection pages = tabControl.
TabPages
;
1003
TabPageCollection pages = tabControl.
TabPages
;
1027
TabPageCollection pages = tabControl.
TabPages
;
1051
TabPageCollection pages = tabControl.
TabPages
;
1081
TabPageCollection pages = tabControl.
TabPages
;
1096
TabPageCollection pages = tabControl.
TabPages
;
1111
TabPageCollection pages = tabControl.
TabPages
;
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (5)
206
TabPageCollection pages = tabControl.
TabPages
;
225
TabPageCollection pages = tabControl.
TabPages
;
243
TabPageCollection pages = tabControl.
TabPages
;
265
TabPageCollection pages = tabControl.
TabPages
;
413
TabPageCollection pages = tabControl.
TabPages
;
System\Windows\Forms\TabControl.ControlCollectionTests.cs (27)
69
Assert.Same(value1, Assert.Single(owner.
TabPages
));
87
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
115
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
199
Assert.Same(value1, Assert.Single(owner.
TabPages
));
226
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
267
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
366
Assert.Same(value1, Assert.Single(owner.
TabPages
));
387
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
421
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
514
Assert.Same(value1, Assert.Single(owner.
TabPages
));
544
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
591
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
742
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
922
Assert.Same(value1, Assert.Single(owner.
TabPages
));
942
Assert.Same(value1, Assert.Single(owner.
TabPages
));
962
Assert.Empty(owner.
TabPages
);
1034
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1057
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1083
Assert.Empty(owner.
TabPages
);
1152
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1175
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1198
Assert.Empty(owner.
TabPages
);
1271
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1294
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1320
Assert.Empty(owner.
TabPages
);
1437
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
1446
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (75)
54
Assert.Same(value1, Assert.Single(owner.
TabPages
));
73
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
102
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
187
Assert.Same(value1, Assert.Single(owner.
TabPages
));
215
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
257
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
357
Assert.Same(value1, Assert.Single(owner.
TabPages
));
379
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
414
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
508
Assert.Same(value1, Assert.Single(owner.
TabPages
));
539
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
587
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
745
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
1002
Assert.Same(value1, Assert.Single(owner.
TabPages
));
1020
Assert.Equal(new TabPage[] { value1, value2 }, owner.
TabPages
.Cast<TabPage>());
1048
Assert.Equal(new TabPage[] { value1, value2, value1 }, owner.
TabPages
.Cast<TabPage>());
1311
Assert.Empty(owner.
TabPages
);
1320
Assert.Empty(owner.
TabPages
);
1362
Assert.Empty(owner.
TabPages
);
1377
Assert.Empty(owner.
TabPages
);
1418
Assert.Empty(owner.
TabPages
);
1430
Assert.Empty(owner.
TabPages
);
1483
Assert.Empty(owner.
TabPages
);
1501
Assert.Empty(owner.
TabPages
);
1996
Assert.Same(value1, Assert.Single(owner.
TabPages
));
2015
Assert.Equal(new TabPage[] { value2, value1 }, owner.
TabPages
.Cast<TabPage>());
2046
Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.
TabPages
.Cast<TabPage>());
2124
Assert.Same(value1, Assert.Single(owner.
TabPages
));
2152
Assert.Equal(new TabPage[] { value2, value1 }, owner.
TabPages
.Cast<TabPage>());
2196
Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.
TabPages
.Cast<TabPage>());
2300
Assert.Same(value1, Assert.Single(owner.
TabPages
));
2322
Assert.Equal(new TabPage[] { value2, value1 }, owner.
TabPages
.Cast<TabPage>());
2359
Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.
TabPages
.Cast<TabPage>());
2457
Assert.Same(value1, Assert.Single(owner.
TabPages
));
2488
Assert.Equal(new TabPage[] { value2, value1 }, owner.
TabPages
.Cast<TabPage>());
2538
Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.
TabPages
.Cast<TabPage>());
2695
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
3042
Assert.Same(value1, Assert.Single(owner.
TabPages
));
3061
Assert.Equal(new TabPage[] { value2, value1 }, owner.
TabPages
.Cast<TabPage>());
3092
Assert.Equal(new TabPage[] { value2, value1, value1 }, owner.
TabPages
.Cast<TabPage>());
4008
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4029
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4050
Assert.Empty(owner.
TabPages
);
4123
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4147
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4174
Assert.Empty(owner.
TabPages
);
4246
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4270
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4294
Assert.Empty(owner.
TabPages
);
4370
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4394
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4421
Assert.Empty(owner.
TabPages
);
4543
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
4552
Assert.Equal(items, owner.
TabPages
.Cast<TabPage>());
4728
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4748
Assert.Same(value1, Assert.Single(owner.
TabPages
));
4768
Assert.Empty(owner.
TabPages
);
5008
TabControl.
TabPages
.Add(page1);
5011
TabControl.
TabPages
.Insert(1, page2);
5012
Assert.Equal(2, TabControl.
TabPages
.Count);
5013
Assert.Equal(page2, TabControl.
TabPages
[1]);
5017
TabControl.
TabPages
.Insert(1, page3);
5018
Assert.Equal(3, TabControl.
TabPages
.Count);
5019
Assert.Equal(page3, TabControl.
TabPages
[1]);
5021
Assert.Equal(page2, TabControl.
TabPages
[2]);
5035
TabControl.
TabPages
.Insert(0, page1);
5036
Assert.Equal(1, TabControl.
TabPages
.Count);
5037
Assert.Equal(page1, TabControl.
TabPages
[0]);
5041
TabControl.
TabPages
.Insert(1, page2);
5042
Assert.Equal(2, TabControl.
TabPages
.Count);
5043
Assert.Equal(page2, TabControl.
TabPages
[1]);
5047
TabControl.
TabPages
.Insert(1, page3);
5048
Assert.Equal(3, TabControl.
TabPages
.Count);
5049
Assert.Equal(page3, TabControl.
TabPages
[1]);
5051
Assert.Equal(page2, TabControl.
TabPages
[2]);
System\Windows\Forms\TabControlTests.cs (131)
104
Assert.Empty(control.
TabPages
);
105
Assert.Same(control.
TabPages
, control.
TabPages
);
1052
control.
TabPages
.Add(page1);
1053
control.
TabPages
.Add(page2);
1054
control.
TabPages
.Add(page3);
1261
control.
TabPages
.Add(page1);
1262
control.
TabPages
.Add(page2);
1457
control.
TabPages
.Add(page1);
1458
control.
TabPages
.Add(page2);
2018
control.
TabPages
.Add(page1);
2019
control.
TabPages
.Add(page2);
2053
control.
TabPages
.Add(page1);
2054
control.
TabPages
.Add(page2);
2058
Assert.Equal(value < 0 || value >= control.
TabPages
.Count ? null : control.
TabPages
[value], control.SelectedTab);
2068
Assert.Equal(value < 0 || value >= control.
TabPages
.Count ? null : control.
TabPages
[value], control.SelectedTab);
2120
control.
TabPages
.Add(page1);
2121
control.
TabPages
.Add(page2);
2132
Assert.Equal(expected == -1 ? null : control.
TabPages
[expected], control.SelectedTab);
2134
Assert.Equal(expectedVisible, control.
TabPages
.Cast<TabPage>().Select(p => p.Visible));
2142
Assert.Equal(expected == -1 ? null : control.
TabPages
[expected], control.SelectedTab);
2143
Assert.Equal(expectedVisible, control.
TabPages
.Cast<TabPage>().Select(p => p.Visible));
2524
control.
TabPages
.Add(page1);
2525
control.
TabPages
.Add(page2);
2544
Assert.Empty(control.
TabPages
);
2580
control.
TabPages
.Add(page1);
2581
control.
TabPages
.Add(page2);
2672
control.
TabPages
.Add(page1);
2673
control.
TabPages
.Add(page2);
3017
control.
TabPages
.Add(page1);
3018
control.
TabPages
.Add(page2);
3068
control.
TabPages
.Add(page1);
3069
control.
TabPages
.Add(page2);
3185
control.
TabPages
.Add(page1);
3186
control.
TabPages
.Add(page2);
3202
control.
TabPages
.Add(page1);
3203
control.
TabPages
.Add(page2);
3259
control.
TabPages
.Add(page1);
3260
control.
TabPages
.Add(page2);
3385
control.
TabPages
.Add(page1);
3386
control.
TabPages
.Add(page2);
3396
control.
TabPages
.Add(page1);
3397
control.
TabPages
.Add(page2);
3447
control.
TabPages
.Add(page1);
3448
control.
TabPages
.Add(page2);
3568
control.
TabPages
.Add(page1);
3569
control.
TabPages
.Add(page2);
3620
control.
TabPages
.Add(page1);
3621
control.
TabPages
.Add(page2);
3622
Assert.Same(control.
TabPages
[index], control.GetControl(index));
3645
control.
TabPages
.Add(page1);
3646
control.
TabPages
.Add(page2);
3656
control.
TabPages
.Add(page1);
3657
control.
TabPages
.Add(page2);
3681
control.
TabPages
.Add(page1);
3682
control.
TabPages
.Add(page2);
3725
control.
TabPages
.Add(page);
3754
control.
TabPages
.Add(page);
3793
control.
TabPages
.Add(page1);
3814
control.
TabPages
.Add(page1);
3844
control.
TabPages
.Add(page1);
3845
control.
TabPages
.Add(page2);
3872
control.
TabPages
.Add(page1);
3873
control.
TabPages
.Add(page2);
3885
control.
TabPages
.Add(page);
3912
control.
TabPages
.Add(page1);
3913
control.
TabPages
.Add(page2);
3923
control.
TabPages
.Add(page1);
3924
control.
TabPages
.Add(page2);
4144
control.
TabPages
.Add(page1);
4145
control.
TabPages
.Add(page2);
4280
control.
TabPages
.Add(page1);
4281
control.
TabPages
.Add(page2);
4455
control.
TabPages
.Add(page1);
4456
control.
TabPages
.Add(page2);
4618
control.
TabPages
.Add(page1);
4619
control.
TabPages
.Add(page2);
4693
control.
TabPages
.Add(page1);
4694
control.
TabPages
.Add(page2);
4774
control.
TabPages
.Add(page1);
4775
control.
TabPages
.Add(page2);
4857
Assert.Empty(control.
TabPages
);
4865
Assert.Empty(control.
TabPages
);
4874
Assert.Empty(control.
TabPages
);
4884
control.
TabPages
.Add(page1);
4885
control.
TabPages
.Add(page2);
4890
Assert.Equal(new TabPage[] { page1, page2 }, control.
TabPages
.Cast<TabPage>());
4898
Assert.Equal(new TabPage[] { page1, page2 }, control.
TabPages
.Cast<TabPage>());
4907
Assert.Equal(new TabPage[] { page1, page2 }, control.
TabPages
.Cast<TabPage>());
4926
control.
TabPages
.Add(page1);
4927
control.
TabPages
.Add(page2);
4928
control.
TabPages
.Add(page3);
4978
Assert.Empty(control.
TabPages
);
4986
Assert.Empty(control.
TabPages
);
5005
control.
TabPages
.Add(child1);
5006
control.
TabPages
.Add(child2);
5007
control.
TabPages
.Add(child3);
5024
Assert.Empty(control.
TabPages
);
5038
Assert.Empty(control.
TabPages
);
5077
Assert.Empty(control.
TabPages
);
5088
Assert.Empty(control.
TabPages
);
5110
control.
TabPages
.Add(child1);
5111
control.
TabPages
.Add(child2);
5112
control.
TabPages
.Add(child3);
5137
Assert.Empty(control.
TabPages
);
5154
Assert.Empty(control.
TabPages
);
5182
control.
TabPages
.Add(child1);
5183
control.
TabPages
.Add(child2);
5184
control.
TabPages
.Add(child3);
5197
control.
TabPages
.Add(page1);
5198
control.
TabPages
.Add(page2);
5237
control.
TabPages
.Add(page1);
5238
control.
TabPages
.Add(page2);
5341
control.
TabPages
.Add(page1);
5342
control.
TabPages
.Add(page2);
5358
control.
TabPages
.Add(page1);
5359
control.
TabPages
.Add(page2);
5404
control.
TabPages
.Add(page1);
5405
control.
TabPages
.Add(page2);
5511
control.
TabPages
.Add(page1);
5512
control.
TabPages
.Add(page2);
5522
control.
TabPages
.Add(page1);
5523
control.
TabPages
.Add(page2);
5562
control.
TabPages
.Add(page1);
5563
control.
TabPages
.Add(page2);
5663
control.
TabPages
.Add(page1);
5664
control.
TabPages
.Add(page2);
5681
control.
TabPages
.Add(page1);
5682
control.
TabPages
.Add(page2);
System\Windows\Forms\TabPageTests.cs (27)
1379
owner.
TabPages
.Add(page1);
1380
owner.
TabPages
.Add(page2);
1381
owner.
TabPages
.Add(page3);
1446
owner.
TabPages
.Add(page1);
1447
owner.
TabPages
.Add(page2);
1448
owner.
TabPages
.Add(page3);
1754
owner.
TabPages
.Add(page1);
1755
owner.
TabPages
.Add(page2);
1756
owner.
TabPages
.Add(page3);
1818
owner.
TabPages
.Add(page1);
1819
owner.
TabPages
.Add(page2);
1820
owner.
TabPages
.Add(page3);
3010
owner.
TabPages
.Add(page1);
3011
owner.
TabPages
.Add(page2);
3012
owner.
TabPages
.Add(page3);
3077
owner.
TabPages
.Add(page1);
3078
owner.
TabPages
.Add(page2);
3079
owner.
TabPages
.Add(page3);
3383
owner.
TabPages
.Add(page1);
3384
owner.
TabPages
.Add(page2);
3385
owner.
TabPages
.Add(page3);
3447
owner.
TabPages
.Add(page1);
3448
owner.
TabPages
.Add(page2);
3449
owner.
TabPages
.Add(page3);
4964
tabControl.
TabPages
.Add(new TabPage());
4967
TabPage testedTab = tabControl.
TabPages
[index];
5032
tabControl.
TabPages
.Add(page);
System.Windows.Forms.UI.IntegrationTests (13)
TabControlTests.cs (13)
72
bool resultOfPage1 = ((IKeyboardToolTip)tabControl.
TabPages
[0]).IsHoveredWithMouse();
73
bool resultOfPage2 = ((IKeyboardToolTip)tabControl.
TabPages
[1]).IsHoveredWithMouse();
90
tabControl.
TabPages
.Add(tabPage1);
91
tabControl.
TabPages
.Add(tabPage2);
104
var originalPages = tabControl.
TabPages
.Cast<TabPage>().ToArray();
118
Assert.Equal(tabControl.Controls[i], tabControl.
TabPages
[i]);
124
tabControl.
TabPages
.RemoveAt(0);
128
Assert.Equal(originalPages[1], tabControl.
TabPages
[0]);
129
Assert.Equal(originalPages[2], tabControl.
TabPages
[1]);
142
tabControl.
TabPages
.Add(tabPage1);
143
tabControl.
TabPages
.Add(tabPage2);
144
tabControl.
TabPages
.Add(tabPage3);
147
tabControl.SelectedIndex = tabControl.
TabPages
.Count - 1;