31 writes to SelectedTab
System.Windows.Forms (4)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
984
SelectedTab
= GetTabPage(++index);
988
SelectedTab
= GetTabPage(0);
1664
SelectedTab
= t;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
85
OwningTabControl.
SelectedTab
= _owningTabPage;
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
173
_tabControl.
SelectedTab
= _systemTabPage;
347
_tabControl.
SelectedTab
= _tabControl.TabPages[sel];
392
_tabControl.
SelectedTab
= selectedTab;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
422
tabControl.
SelectedTab
= page;
System.Windows.Forms.Tests (23)
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (3)
710
tabControl.
SelectedTab
= pages[1];
731
tabControl.
SelectedTab
= pages[1];
753
tabControl.
SelectedTab
= pages[0];
System\Windows\Forms\TabControl.ControlCollectionTests.cs (2)
1362
owner.
SelectedTab
= value4;
1399
owner.
SelectedTab
= value4;
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (2)
4466
owner.
SelectedTab
= value4;
4505
owner.
SelectedTab
= value4;
System\Windows\Forms\TabControlTests.cs (16)
2560
SelectedTab
= value
2567
control.
SelectedTab
= value;
2584
control.
SelectedTab
= page2;
2594
control.
SelectedTab
= page2;
2604
control.
SelectedTab
= page3;
2614
control.
SelectedTab
= page1;
2624
control.
SelectedTab
= null;
2647
control.
SelectedTab
= value;
2656
control.
SelectedTab
= value;
2697
control.
SelectedTab
= page2;
2716
control.
SelectedTab
= page2;
2735
control.
SelectedTab
= page3;
2754
control.
SelectedTab
= page1;
2773
control.
SelectedTab
= null;
4282
control.
SelectedTab
= page2;
4457
control.
SelectedTab
= page2;
126 references to SelectedTab
System.Windows.Forms (28)
System\Windows\Forms\Controls\TabControl\TabControl.cs (19)
980
if (
SelectedTab
== t)
1210
NotifyAboutFocusState(
SelectedTab
, focused: true);
1213
if (IsAccessibilityObjectCreated &&
SelectedTab
is not null)
1215
SelectedTab
.TabAccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
1340
SelectedTab
?.FireEnter(e);
1359
SelectedTab
?.FireLeave(e);
1366
NotifyAboutFocusState(
SelectedTab
, focused: false);
1451
NotifyAboutFocusState(
SelectedTab
, focused: true);
1470
SelectedTab
?.FireEnter(EventArgs.Empty);
1489
if (
SelectedTab
is not null)
1491
NotifyAboutFocusState(
SelectedTab
, focused: false);
1492
SelectedTab
.FireLeave(EventArgs.Empty);
1950
TabControlCancelEventArgs tcc = new(
SelectedTab
, SelectedIndex, false, TabControlAction.Selecting);
1954
OnSelected(new TabControlEventArgs(
SelectedTab
, SelectedIndex, TabControlAction.Selected));
1957
if (IsAccessibilityObjectCreated &&
SelectedTab
?.ParentInternal is TabControl)
1959
SelectedTab
.TabAccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_SelectionItem_ElementSelectedEventId);
1960
BeginInvoke((MethodInvoker)(() =>
SelectedTab
.TabAccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId)));
1993
TabControlCancelEventArgs tcc = new(
SelectedTab
, SelectedIndex, false, TabControlAction.Deselecting);
1997
OnDeselected(new TabControlEventArgs(
SelectedTab
, SelectedIndex, TabControlAction.Deselected));
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (6)
55
? owner.
SelectedTab
?.AccessibilityObject
91
if (owner.
SelectedTab
is not null
92
&& owner.
SelectedTab
.AccessibilityObject.Bounds.Contains(point))
94
return owner.
SelectedTab
.AccessibilityObject;
120
NavigateDirection.NavigateDirection_FirstChild => owner.
SelectedTab
?.AccessibilityObject,
140
=> !this.IsOwnerHandleCreated(out TabControl? owner) || owner.
SelectedTab
is null
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
205
TabPage? selectedTab = tabControl.
SelectedTab
;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
63
internal override bool IsItemSelected => OwningTabControl?.
SelectedTab
== _owningTabPage;
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
84
if (!this.TryGetOwnerAs(out TabPage? owningTabPage) || OwningTabControl is null || owningTabPage != OwningTabControl.
SelectedTab
)
System.Windows.Forms.Design (7)
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorTabControl.cs (1)
20
TabPage? selectedTab =
SelectedTab
;
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
323
TabPage? selectedPage = _tabControl.
SelectedTab
;
System\Windows\Forms\Design\TabControlDesigner.cs (5)
126
if (tc.
SelectedTab
is null)
134
TabPageDesigner selectedTabPageDesigner = host.GetDesigner(tc.
SelectedTab
) as TabPageDesigner;
334
TabPage tp = tc.
SelectedTab
;
446
if (page is not null && page.Parent == tabControl && page == tabControl.
SelectedTab
)
485
TabPage selectedTab = ((TabControl)Component).
SelectedTab
;
System.Windows.Forms.Tests (91)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (4)
293
AccessibleObject expectedAccessibleObject = tabControl.
SelectedTab
.AccessibilityObject;
377
Assert.Equal(tabControl.
SelectedTab
.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
393
Assert.Equal(tabControl.
SelectedTab
.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
413
Assert.Equal(tabControl.
SelectedTab
.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
System\Windows\Forms\TabControl.ControlCollectionTests.cs (10)
1363
Assert.Same(value4, owner.
SelectedTab
);
1368
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
1373
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
1378
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
1383
Assert.Null(owner.
SelectedTab
);
1400
Assert.Same(value4, owner.
SelectedTab
);
1406
Assert.Same(value4, owner.
SelectedTab
);
1411
Assert.Same(value1, owner.
SelectedTab
);
1416
Assert.Same(value3, owner.
SelectedTab
);
1421
Assert.Null(owner.
SelectedTab
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (10)
4467
Assert.Same(value4, owner.
SelectedTab
);
4472
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
4477
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
4482
Assert.Throws<ArgumentOutOfRangeException>(() => owner.
SelectedTab
);
4487
Assert.Null(owner.
SelectedTab
);
4506
Assert.Same(value4, owner.
SelectedTab
);
4512
Assert.Same(value4, owner.
SelectedTab
);
4517
Assert.Same(value1, owner.
SelectedTab
);
4522
Assert.Same(value3, owner.
SelectedTab
);
4527
Assert.Null(owner.
SelectedTab
);
System\Windows\Forms\TabControlTests.cs (67)
95
Assert.Null(control.
SelectedTab
);
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
);
2094
Assert.Null(control.
SelectedTab
);
2103
Assert.Null(control.
SelectedTab
);
2132
Assert.Equal(expected == -1 ? null : control.TabPages[expected], control.
SelectedTab
);
2142
Assert.Equal(expected == -1 ? null : control.TabPages[expected], control.
SelectedTab
);
2515
Assert.Null(control.
SelectedTab
);
2527
Assert.Same(page1, control.
SelectedTab
);
2542
Assert.Null(control.
SelectedTab
);
2545
Assert.Null(control.
SelectedTab
);
2562
Assert.Null(control.
SelectedTab
);
2568
Assert.Null(control.
SelectedTab
);
2585
Assert.Same(page2, control.
SelectedTab
);
2595
Assert.Same(page2, control.
SelectedTab
);
2605
Assert.Null(control.
SelectedTab
);
2615
Assert.Same(page1, control.
SelectedTab
);
2625
Assert.Null(control.
SelectedTab
);
2648
Assert.Null(control.
SelectedTab
);
2657
Assert.Null(control.
SelectedTab
);
2698
Assert.Same(page2, control.
SelectedTab
);
2717
Assert.Same(page2, control.
SelectedTab
);
2736
Assert.Null(control.
SelectedTab
);
2755
Assert.Same(page1, control.
SelectedTab
);
2774
Assert.Null(control.
SelectedTab
);
3022
Assert.Null(control.
SelectedTab
);
3033
Assert.Same(page2, control.
SelectedTab
);
3043
Assert.Same(page2, control.
SelectedTab
);
3053
Assert.Same(page1, control.
SelectedTab
);
3094
Assert.Same(page2, control.
SelectedTab
);
3114
Assert.Same(page2, control.
SelectedTab
);
3133
Assert.Same(page2, control.
SelectedTab
);
3152
Assert.Same(page1, control.
SelectedTab
);
3207
Assert.Null(control.
SelectedTab
);
3218
Assert.Same(page2, control.
SelectedTab
);
3228
Assert.Same(page2, control.
SelectedTab
);
3238
Assert.Same(page1, control.
SelectedTab
);
3285
Assert.Same(page2, control.
SelectedTab
);
3305
Assert.Same(page2, control.
SelectedTab
);
3324
Assert.Same(page2, control.
SelectedTab
);
3343
Assert.Same(page1, control.
SelectedTab
);
3401
Assert.Null(control.
SelectedTab
);
3412
Assert.Same(page2, control.
SelectedTab
);
3422
Assert.Same(page2, control.
SelectedTab
);
3432
Assert.Same(page1, control.
SelectedTab
);
3473
Assert.Same(page2, control.
SelectedTab
);
3493
Assert.Same(page2, control.
SelectedTab
);
3512
Assert.Same(page2, control.
SelectedTab
);
3531
Assert.Same(page1, control.
SelectedTab
);
5202
Assert.Same(page2, control.
SelectedTab
);
5212
Assert.Same(page2, control.
SelectedTab
);
5222
Assert.Same(page1, control.
SelectedTab
);
5263
Assert.Same(page2, control.
SelectedTab
);
5282
Assert.Same(page2, control.
SelectedTab
);
5301
Assert.Same(page1, control.
SelectedTab
);
5363
Assert.Same(page2, control.
SelectedTab
);
5373
Assert.Same(page2, control.
SelectedTab
);
5383
Assert.Same(page1, control.
SelectedTab
);
5430
Assert.Same(page2, control.
SelectedTab
);
5449
Assert.Same(page2, control.
SelectedTab
);
5468
Assert.Same(page1, control.
SelectedTab
);
5527
Assert.Same(page2, control.
SelectedTab
);
5537
Assert.Same(page2, control.
SelectedTab
);
5547
Assert.Same(page1, control.
SelectedTab
);
5588
Assert.Same(page2, control.
SelectedTab
);
5607
Assert.Same(page2, control.
SelectedTab
);
5626
Assert.Same(page1, control.
SelectedTab
);