7 writes to
System.Windows.Forms (1)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
42
this
[
index] = tabPage;
System.Windows.Forms.Tests (6)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (6)
3372
collection
[
index] = newPage;
3417
collection
[
index] = newPage;
3457
collection
[
index] = newPage;
3513
collection
[
index] = newPage;
3695
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index] = page);
3711
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index] = page2);
23 references to
System.Windows.Forms (6)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
56
: owner.TabPages
[
index - 1].TabAccessibilityObject;
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
34
get => this
[
index];
66
return this
[
index];
165
if (this
[
index] == page)
197
if (WindowsFormsUtils.SafeCompareStrings(this
[
_lastAccessedIndex].Name, key, ignoreCase: true))
206
if (WindowsFormsUtils.SafeCompareStrings(this
[
i].Name, key, ignoreCase: true))
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
347
_tabControl.SelectedTab = _tabControl.TabPages
[
sel];
System.Windows.Forms.Tests (15)
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
463
Assert.Equal(pages
[
selectedIndex].TabAccessibilityObject, selectedAccessibleObjects[0]);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (8)
3256
Assert.Equal(collection
[
expectedIndex], collection[key]);
3259
Assert.Equal(collection
[
expectedIndex], collection[key]);
3336
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
3351
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection
[
index]);
3373
Assert.Same(newPage, collection
[
index]);
3418
Assert.Same(newPage, collection
[
index]);
3458
Assert.Same(newPage, collection
[
index]);
3514
Assert.Same(newPage, collection
[
index]);
System\Windows\Forms\TabControlTests.cs (5)
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);
2132
Assert.Equal(expected == -1 ? null : control.TabPages
[
expected], control.SelectedTab);
2142
Assert.Equal(expected == -1 ? null : control.TabPages
[
expected], control.SelectedTab);
3622
Assert.Same(control.TabPages
[
index], control.GetControl(index));
System\Windows\Forms\TabPageTests.cs (1)
4967
TabPage testedTab = tabControl.TabPages
[
index];
System.Windows.Forms.UI.IntegrationTests (1)
TabControlTests.cs (1)
118
Assert.Equal(tabControl.Controls[i], tabControl.TabPages
[
i]);