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