28 overrides of GetChild
System.Windows.Forms (26)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
58public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
35public override AccessibleObject? GetChild(int index) =>
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
98public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
391public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
250public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
39public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
41public override AccessibleObject? GetChild(int index) =>
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
186public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
90public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
254public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
149public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (1)
25public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
380public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
44public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
26public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
41public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
90public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
68public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
33public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownAccessibleObject.cs (1)
27public override AccessibleObject? GetChild(int index) => _upDownBaseAccessibleObject.GetChild(index);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownBaseAccessibleObject.cs (1)
13public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
51public override AccessibleObject? GetChild(int index) => index switch
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
44public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (1)
23public override AccessibleObject? GetChild(int index) =>
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (1)
40public override AccessibleObject? GetChild(int index)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
54public override AccessibleObject? GetChild(int index)
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
25public override AccessibleObject? GetChild(int id)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
65public override AccessibleObject? GetChild(int index)
703 references to GetChild
System.Windows.Forms (49)
System\Windows\Forms\Accessibility\AccessibleObject.cs (7)
434AccessibleObject? child = GetChild(index); 502AccessibleObject? child = GetChild(index); 545AccessibleObject? child = GetChild(index); 2024return GetChild(index); 2042return index >= 0 && index < GetChildCount() ? GetChild(index) : null; 2603return GetChild(0); 2605return GetChild(GetChildCount() - 1);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6805return AccessibilityObject.GetChild(objectId - 1);
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (2)
166return _ownerDataGridView.AccessibilityObject.GetChild(1); 208return _ownerDataGridView.Rows.Count == 0 ? null : Parent.GetChild(1);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
514return childCount > 0 ? previousRow.GetChild(childCount - 1) : null; 519return _owner.DataGridView.RowHeadersVisible ? _owner.OwningRow.AccessibilityObject.GetChild(0) : null; 549return _owner.DataGridView.RowHeadersVisible ? nextRow.GetChild(1) : nextRow.GetChild(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (4)
68: Owner.DataGridView?.AccessibilityObject.GetChild(0); 173return Owner.DataGridView.RowHeadersVisible ? Parent?.GetChild(0) : null; 178return Parent?.GetChild(VisibleIndex - 1); 197return visibleIndex < 0 ? null : Parent?.GetChild(visibleIndex + 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
347: _owningDataGridViewRow.DataGridView.AccessibilityObject.GetChild(visibleIndex + 1); 358return _owningDataGridViewRow.DataGridView.AccessibilityObject.GetChild(VisibleIndex - 1); 363return ParentPrivate?.GetChild(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (2)
49AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.GetChild(i); 72AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.GetChild(i);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (10)
150? ParentPrivate?.GetChild(1) // go to the next sibling 169return Owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex)?.GetChild(0); 182Debug.Assert(Owner.DataGridView.TopLeftHeaderCell.AccessibilityObject == Owner.DataGridView.AccessibilityObject.GetChild(0)!.GetChild(0)); 183return Owner.DataGridView.AccessibilityObject.GetChild(0)?.GetChild(0); 195return Owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex)?.GetChild(0); 262? Owner.OwningRow.AccessibilityObject.GetChild(1) // go to the next sibling
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (3)
258return Owner.DataGridView.AccessibilityObject.GetChild(0)?.GetChild(1); 279return dataGridView.AccessibilityObject.GetChild(0);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
799AccessibleObject? checkedItem = AccessibilityObject.GetChild(ice.Index);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1883AccessibilityObject?.GetChild(Items.Count - 1)?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
138return childIndex == InvalidIndex ? null : parentInternal.GetChild(childIndex + 1); 140return parentInternal.GetChild(parentInternal.GetChildIndex(this) - 1);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
69NavigateDirection.NavigateDirection_NextSibling => Parent.GetChild(1),
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (2)
38return childIndex == InvalidIndex ? null : _parentInternal.GetChild(childIndex + 1); 40return _parentInternal.GetChild(_parentInternal.GetChildIndex(this) - 1);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (2)
101NavigateDirection.NavigateDirection_NextSibling => OwningTabControl.AccessibilityObject.GetChild(GetChildId() + 1), 102NavigateDirection.NavigateDirection_PreviousSibling => OwningTabControl.AccessibilityObject.GetChild(GetChildId() - 1),
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
97return _owner.DropDown.AccessibilityObject.GetChild(index);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (2)
69NavigateDirection.NavigateDirection_NextSibling => _up ? Parent.GetChild(1) : null, 70NavigateDirection.NavigateDirection_PreviousSibling => _up ? null : Parent.GetChild(0),
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
51return base.GetChild(index);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (2)
67if (_control.AccessibilityObject.GetChild(index) is Control.ControlAccessibleObject childAccObj) 76return _control.AccessibilityObject.GetChild(index);
System.Windows.Forms.Tests (629)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (127)
77Assert.Null(accessibleObject.GetChild(index)); 133.Setup(a => a.GetChild(0)) 136.Setup(a => a.GetChild(1)) 167.Setup(a => a.GetChild(0)) 170.Setup(a => a.GetChild(1)) 173.Setup(a => a.GetChild(2)) 242.Setup(a => a.GetChild(0)) 245.Setup(a => a.GetChild(1)) 276.Setup(a => a.GetChild(0)) 279.Setup(a => a.GetChild(1)) 282.Setup(a => a.GetChild(2)) 357.Setup(a => a.GetChild(0)) 360.Setup(a => a.GetChild(1)) 391.Setup(a => a.GetChild(0)) 394.Setup(a => a.GetChild(1)) 397.Setup(a => a.GetChild(2)) 437.Setup(a => a.GetChild(0)) 444mockAccessibleObject.Verify(a => a.GetChild(0), Times.Once()); 456.Setup(a => a.GetChild(childCount - 1)) 463mockAccessibleObject.Verify(a => a.GetChild(childCount - 1), Times.Once()); 868.Setup(a => a.GetChild(0)) 871.Setup(a => a.GetChild(1)) 874.Setup(a => a.GetChild(2)) 896.Setup(a => a.GetChild(0)) 899.Setup(a => a.GetChild(1)) 902.Setup(a => a.GetChild(2)) 1008.Setup(a => a.GetChild(0)) 1011.Setup(a => a.GetChild(1)) 1043.Setup(a => a.GetChild(0)) 1046.Setup(a => a.GetChild(1)) 1049.Setup(a => a.GetChild(2)) 1098.Setup(a => a.GetChild(0)) 1101.Setup(a => a.GetChild(1)) 1104.Setup(a => a.GetChild(2)) 1130.Setup(a => a.GetChild(0)) 1133.Setup(a => a.GetChild(1)) 1136.Setup(a => a.GetChild(2)) 1185.Setup(a => a.GetChild(0)) 1188.Setup(a => a.GetChild(1)) 1191.Setup(a => a.GetChild(2)) 1221.Setup(a => a.GetChild(0)) 1224.Setup(a => a.GetChild(1)) 1227.Setup(a => a.GetChild(2)) 1249.Setup(a => a.GetChild(0)) 1252.Setup(a => a.GetChild(1)) 1255.Setup(a => a.GetChild(2)) 1333.Setup(a => a.GetChild(0)) 1336.Setup(a => a.GetChild(1)) 1339.Setup(a => a.GetChild(2)) 1361.Setup(a => a.GetChild(0)) 1364.Setup(a => a.GetChild(1)) 1367.Setup(a => a.GetChild(2)) 1427.Setup(a => a.GetChild(0)) 1430.Setup(a => a.GetChild(1)) 1433.Setup(a => a.GetChild(2)) 1457.Setup(a => a.GetChild(0)) 1460.Setup(a => a.GetChild(1)) 1463.Setup(a => a.GetChild(2)) 1484.Setup(a => a.GetChild(0)) 1487.Setup(a => a.GetChild(1)) 1490.Setup(a => a.GetChild(2)) 1556.Setup(a => a.GetChild(0)) 1559.Setup(a => a.GetChild(1)) 1562.Setup(a => a.GetChild(2)) 1584.Setup(a => a.GetChild(0)) 1587.Setup(a => a.GetChild(1)) 1590.Setup(a => a.GetChild(2)) 1656.Setup(a => a.GetChild(0)) 1659.Setup(a => a.GetChild(1)) 1662.Setup(a => a.GetChild(2)) 1687.Setup(a => a.GetChild(0)) 1690.Setup(a => a.GetChild(1)) 1693.Setup(a => a.GetChild(2)) 1759.Setup(a => a.GetChild(0)) 1762.Setup(a => a.GetChild(1)) 1765.Setup(a => a.GetChild(2)) 1790.Setup(a => a.GetChild(0)) 1793.Setup(a => a.GetChild(1)) 1796.Setup(a => a.GetChild(2)) 1874.Setup(a => a.GetChild(0)) 1877.Setup(a => a.GetChild(1)) 1880.Setup(a => a.GetChild(2)) 1904.Setup(a => a.GetChild(0)) 1907.Setup(a => a.GetChild(1)) 1910.Setup(a => a.GetChild(2)) 1980.Setup(a => a.GetChild(0)) 1983.Setup(a => a.GetChild(1)) 1986.Setup(a => a.GetChild(2)) 2011.Setup(a => a.GetChild(0)) 2014.Setup(a => a.GetChild(1)) 2017.Setup(a => a.GetChild(2)) 2086.Setup(a => a.GetChild(0)) 2089.Setup(a => a.GetChild(1)) 2092.Setup(a => a.GetChild(2)) 2117.Setup(a => a.GetChild(0)) 2120.Setup(a => a.GetChild(1)) 2123.Setup(a => a.GetChild(2)) 2193.Setup(a => a.GetChild(0)) 2196.Setup(a => a.GetChild(1)) 2199.Setup(a => a.GetChild(2)) 2221.Setup(a => a.GetChild(0)) 2224.Setup(a => a.GetChild(1)) 2227.Setup(a => a.GetChild(2)) 2278.Setup(a => a.GetChild(0)) 2281.Setup(a => a.GetChild(1)) 2284.Setup(a => a.GetChild(2)) 2306.Setup(a => a.GetChild(0)) 2309.Setup(a => a.GetChild(1)) 2312.Setup(a => a.GetChild(2)) 2378.Setup(a => a.GetChild(0)) 2381.Setup(a => a.GetChild(1)) 2384.Setup(a => a.GetChild(2)) 2409.Setup(a => a.GetChild(0)) 2412.Setup(a => a.GetChild(1)) 2415.Setup(a => a.GetChild(2)) 2464.Setup(a => a.GetChild(0)) 2467.Setup(a => a.GetChild(1)) 2470.Setup(a => a.GetChild(2)) 2500.Setup(a => a.GetChild(0)) 2503.Setup(a => a.GetChild(1)) 2506.Setup(a => a.GetChild(2)) 2555.Setup(a => a.GetChild(0)) 2558.Setup(a => a.GetChild(1)) 2561.Setup(a => a.GetChild(2)) 2588.Setup(a => a.GetChild(0)) 2591.Setup(a => a.GetChild(1)) 2594.Setup(a => a.GetChild(2))
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (3)
32AccessibleObject item = checkedListBox.AccessibilityObject.GetChild(i); 143AccessibleObject expected = accessibleObject.GetChild(0); 159AccessibleObject expected = accessibleObject.GetChild(2);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (26)
48Assert.Equal(testName, checkedListBox.AccessibilityObject.GetChild(0).Name); 58Assert.Equal(AccessibleRole.CheckButton, checkedListBox.AccessibilityObject.GetChild(0).Role); 73Assert.Equal(0, accessibleObject.GetChild(0).TestAccessor().Dynamic.CurrentIndex); 74Assert.Equal(1, accessibleObject.GetChild(1).TestAccessor().Dynamic.CurrentIndex); 75Assert.Equal(2, accessibleObject.GetChild(2).TestAccessor().Dynamic.CurrentIndex); 90AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.GetChild(0); 102Assert.NotNull(checkedListBox.AccessibilityObject.GetChild(0).RuntimeId); 119AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.GetChild(itemIndex); 135AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.GetChild(0); 136AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.GetChild(1); 137AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.GetChild(2); 154AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.GetChild(0); 155AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.GetChild(1); 156AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.GetChild(2); 170Assert.Equal(string.Empty, checkedListBox.AccessibilityObject.GetChild(0).DefaultAction); 189Assert.Equal(expected, checkedListBox.AccessibilityObject.GetChild(0).DefaultAction); 202Assert.Equal(expected, ((BSTR)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree()); 215Assert.Equal(isChecked.ToString(), checkedListBox.AccessibilityObject.GetChild(0).Value); 230checkedListBox.AccessibilityObject.GetChild(0).DoDefaultAction(); 248checkedListBox.AccessibilityObject.GetChild(0).DoDefaultAction(); 264Assert.Equal((ToggleState)toggleState, checkedListBox.AccessibilityObject.GetChild(0).ToggleState); 265Assert.Equal(checkValue.ToString(), ((BSTR)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()); 280checkedListBox.AccessibilityObject.GetChild(0).Toggle(); 298checkedListBox.AccessibilityObject.GetChild(0).Toggle(); 310Assert.True((bool)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_IsInvokePatternAvailablePropertyId)); 322AccessibleObject accessibleObject = checkedListBox.AccessibilityObject.GetChild(0);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
900Assert.Null(accessibleObject.GetChild(index));
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (25)
113Assert.Null(accessibleObject.GetChild(0)); // GetChild method should not throw an exception 125Assert.NotNull(accessibleObject.GetChild(0)); // dataGridView a first empty row. 126Assert.Null(accessibleObject.GetChild(1)); // GetChild method should not throw an exception 137Assert.NotNull(accessibleObject.GetChild(0)); // dataGridView column headers 138Assert.NotNull(accessibleObject.GetChild(1)); // dataGridView a first empty row 751Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 752Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 753Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 772Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 773Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 774Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 794Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 795Assert.Null(dataGridView.AccessibilityObject.GetChild(0)); 796Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 816Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 817Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 818Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 819Assert.Null(dataGridView.AccessibilityObject.GetChild(2)); 839Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 840Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 841Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 842Assert.Null(dataGridView.AccessibilityObject.GetChild(2)); 863Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 864Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 865Assert.Null(dataGridView.AccessibilityObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
379Assert.Throws<InvalidOperationException>(() => accessibleObject.GetChild(-1));
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (1)
33Assert.Equal(control.AccessibilityObject.GetChild(0), accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (67)
251Assert.Throws<InvalidOperationException>(() => accessibleObject.GetChild(0)); 1873Assert.Null(rowAccessibleObject.GetChild(0)); 1874Assert.Null(rowAccessibleObject.GetChild(1)); 1875Assert.Null(rowAccessibleObject.GetChild(2)); 1892Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 1893Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 1894Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 1895Assert.Null(rowAccessibleObject.GetChild(3)); 1912Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(0)); 1913Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(1)); 1914Assert.Null(rowAccessibleObject.GetChild(2)); 1931Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 1932Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(1)); 1933Assert.Null(rowAccessibleObject.GetChild(2)); 1950Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 1951Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 1952Assert.Null(rowAccessibleObject.GetChild(2)); 1970Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 1971Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 1972Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(2)); 1973Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(3)); 1974Assert.Null(rowAccessibleObject.GetChild(4)); 1992Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 1993Assert.Null(rowAccessibleObject.GetChild(1)); 1994Assert.Null(rowAccessibleObject.GetChild(2)); 2012Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2013Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 2014Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 2015Assert.Null(rowAccessibleObject.GetChild(3)); 2033Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2034Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 2035Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 2036Assert.Null(rowAccessibleObject.GetChild(3)); 2054Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2055Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 2056Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(2)); 2057Assert.Null(rowAccessibleObject.GetChild(3)); 2077Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 2078Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 2079Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 2080Assert.Null(rowAccessibleObject.GetChild(3)); 2100Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 2101Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 2102Assert.Null(rowAccessibleObject.GetChild(2)); 2122Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(0)); 2123Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(1)); 2124Assert.Null(rowAccessibleObject.GetChild(2)); 2144Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(0)); 2145Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(1)); 2146Assert.Null(rowAccessibleObject.GetChild(2)); 2167Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2168Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 2169Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(2)); 2170Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(3)); 2171Assert.Null(rowAccessibleObject.GetChild(4)); 2192Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2193Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 2194Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(2)); 2195Assert.Null(rowAccessibleObject.GetChild(3)); 2216Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2217Assert.Equal(accessibleObject1, rowAccessibleObject.GetChild(1)); 2218Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 2219Assert.Null(rowAccessibleObject.GetChild(3)); 2240Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.GetChild(0)); 2241Assert.Equal(accessibleObject2, rowAccessibleObject.GetChild(1)); 2242Assert.Equal(accessibleObject3, rowAccessibleObject.GetChild(2)); 2243Assert.Null(rowAccessibleObject.GetChild(3));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (3)
149Assert.Null(accessibleObject.GetChild(-1)); 150Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.GetChild(0)); 151Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (3)
155Assert.Null(accessibleObject.GetChild(-1)); 156Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.GetChild(0)); 157Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (3)
154AccessibleObject expected = control.AccessibilityObject.GetChild(0); 185AccessibleObject expected = control.AccessibilityObject.GetChild(0)?.GetChild(1);
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (66)
736Assert.Null(topRowAccessibleObject.GetChild(0)); 737Assert.Null(topRowAccessibleObject.GetChild(1)); 738Assert.Null(topRowAccessibleObject.GetChild(2)); 755Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 756Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 757Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 758Assert.Null(topRowAccessibleObject.GetChild(3)); 775Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(0)); 776Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(1)); 777Assert.Null(topRowAccessibleObject.GetChild(2)); 794Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 795Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(1)); 796Assert.Null(topRowAccessibleObject.GetChild(2)); 813Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 814Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 815Assert.Null(topRowAccessibleObject.GetChild(2)); 833Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 834Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 835Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(2)); 836Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(3)); 837Assert.Null(topRowAccessibleObject.GetChild(4)); 855Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 856Assert.Null(topRowAccessibleObject.GetChild(1)); 857Assert.Null(topRowAccessibleObject.GetChild(2)); 875Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 876Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 877Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 878Assert.Null(topRowAccessibleObject.GetChild(3)); 896Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 897Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 898Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 899Assert.Null(topRowAccessibleObject.GetChild(3)); 917Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 918Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 919Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(2)); 920Assert.Null(topRowAccessibleObject.GetChild(3)); 940Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 941Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 942Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 943Assert.Null(topRowAccessibleObject.GetChild(3)); 963Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 964Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 965Assert.Null(topRowAccessibleObject.GetChild(2)); 985Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(0)); 986Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(1)); 987Assert.Null(topRowAccessibleObject.GetChild(2)); 1007Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(0)); 1008Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(1)); 1009Assert.Null(topRowAccessibleObject.GetChild(2)); 1030Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 1031Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 1032Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(2)); 1033Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(3)); 1034Assert.Null(topRowAccessibleObject.GetChild(4)); 1055Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 1056Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 1057Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(2)); 1058Assert.Null(topRowAccessibleObject.GetChild(3)); 1079Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 1080Assert.Equal(accessibleObject1, topRowAccessibleObject.GetChild(1)); 1081Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 1082Assert.Null(topRowAccessibleObject.GetChild(3)); 1103Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.GetChild(0)); 1104Assert.Equal(accessibleObject2, topRowAccessibleObject.GetChild(1)); 1105Assert.Equal(accessibleObject3, topRowAccessibleObject.GetChild(2)); 1106Assert.Null(topRowAccessibleObject.GetChild(3));
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (4)
131Assert.Null(accessibleObject.GetChild(-1)); 132Assert.Equal(item1.AccessibilityObject, accessibleObject.GetChild(0)); 133Assert.Equal(item2.AccessibilityObject, accessibleObject.GetChild(1)); 134Assert.Null(accessibleObject.GetChild(2));
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
121AccessibleObject actualAccessibilityObject = errorWindowAccessibilityObject.GetChild(0); 124actualAccessibilityObject = errorWindowAccessibilityObject.GetChild(1);
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (35)
183Assert.Null(accessibleObject.GetChild(-1)); 184Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 185Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.GetChild(1)); 186Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(2)); 187Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.GetChild(3)); 188Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(4)); 189Assert.Null(accessibleObject.GetChild(5)); 199Assert.Null(accessibleObject.GetChild(-1)); 200Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 201Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 202Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.GetChild(2)); 203Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(3)); 204Assert.Null(accessibleObject.GetChild(4)); 205Assert.Null(accessibleObject.GetChild(5)); 215Assert.Null(accessibleObject.GetChild(-1)); 216Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 217Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.GetChild(1)); 218Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(2)); 219Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(3)); 220Assert.Null(accessibleObject.GetChild(4)); 221Assert.Null(accessibleObject.GetChild(5)); 231Assert.Null(accessibleObject.GetChild(-1)); 232Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 233Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 234Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(2)); 235Assert.Null(accessibleObject.GetChild(3)); 236Assert.Null(accessibleObject.GetChild(4)); 237Assert.Null(accessibleObject.GetChild(5)); 247Assert.Null(accessibleObject.GetChild(-1)); 248Assert.Null(accessibleObject.GetChild(0)); 249Assert.Null(accessibleObject.GetChild(1)); 250Assert.Null(accessibleObject.GetChild(2)); 251Assert.Null(accessibleObject.GetChild(3)); 252Assert.Null(accessibleObject.GetChild(4)); 253Assert.Null(accessibleObject.GetChild(5));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (2)
112var actual = (LinkAccessibleObject)linkLabel.AccessibilityObject.GetChild(childIndex); 130Assert.Null(linkLabel.AccessibilityObject.GetChild(childIndex));
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (8)
39AccessibleObject itemAccessibleObject = accessibleObject.GetChild(i); 54AccessibleObject itemAccessibleObject = accessibleObject.GetChild(0); 77AccessibleObject itemAccessibleObject = accessibleObject.GetChild(0); 93AccessibleObject itemAccessibleObject = accessibleObject.GetChild(0); 110AccessibleObject itemAccessibleObject = accessibleObject.GetChild(0); 126AccessibleObject itemAccessibleObject = accessibleObject.GetChild(0); 157ListBox.ListBoxItemAccessibleObject accessibleObject = (ListBox.ListBoxItemAccessibleObject)listBoxAccessibleObject.GetChild(0); 172var itemAccessibleObject = accessibleObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (7)
22var child = listBox.AccessibilityObject.GetChild(i); 211ISelectionItemProvider.Interface provider = listBoxAccessibleObject.GetChild(0); 243accessibilityObject.GetChild(i); 263accessibleObject.GetSelected().Should().Be(accessibleObject.GetChild(0)); 266accessibleObject.GetSelected().Should().Be(accessibleObject.GetChild(1)); 302focusedObject.Should().BeEquivalentTo(accessibleObject.GetChild(1)); 335selectedObject.Should().BeEquivalentTo(accessibleObject.GetChild(expectedIndex.Value));
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (38)
199Assert.Null(accessibleObject.GetChild(0)); // GetChild method should not throw an exception 552Assert.Null(accessibleObject.GetChild(-1)); 556Assert.Equal(listView.DefaultGroup.AccessibilityObject, accessibleObject.GetChild(0)); 557Assert.Equal(listView.Groups[0].AccessibilityObject, accessibleObject.GetChild(1)); 558Assert.Null(accessibleObject.GetChild(2)); 562Assert.Equal(listViewItem1.AccessibilityObject, accessibleObject.GetChild(0)); 563Assert.Equal(listViewItem2.AccessibilityObject, accessibleObject.GetChild(1)); 564Assert.Equal(listViewItem3.AccessibilityObject, accessibleObject.GetChild(2)); 565Assert.Null(accessibleObject.GetChild(3)); 619Assert.Null(listView.AccessibilityObject.GetChild(-1)); 620Assert.Null(listView.AccessibilityObject.GetChild(0)); 621Assert.Null(listView.AccessibilityObject.GetChild(1)); 1281Assert.Null(listView.AccessibilityObject.GetChild(0)); 1291Assert.Null(listView.AccessibilityObject.GetChild(-1)); 1301Assert.Null(listView.AccessibilityObject.GetChild(10)); 1325Assert.Equal(expectedValues[0], listView.AccessibilityObject.GetChild(0)); 1326Assert.Equal(expectedValues[1], listView.AccessibilityObject.GetChild(1)); 1327Assert.Equal(expectedValues[2], listView.AccessibilityObject.GetChild(2)); 1647Assert.Equal(listViewGroupWithItems1.AccessibilityObject, accessibleObject.GetChild(0)); 1648Assert.Equal(listViewGroupWithItems2.AccessibilityObject, accessibleObject.GetChild(1)); 1649Assert.Null(accessibleObject.GetChild(2)); 1650Assert.Null(accessibleObject.GetChild(3)); 1669Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.GetChild(0)); 1670Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.GetChild(1)); 1671Assert.Null(accessibleObject.GetChild(2)); 1672Assert.Null(accessibleObject.GetChild(3)); 1681Assert.Equal(listView.Groups[0].AccessibilityObject, accessibleObject.GetChild(0)); 1682Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.GetChild(1)); 1683Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.GetChild(2)); 1684Assert.Equal(listView.Groups[3].AccessibilityObject, accessibleObject.GetChild(3)); 1703Assert.Equal(listView.Groups[1].AccessibilityObject, accessibleObject.GetChild(0)); 1704Assert.Equal(listView.Groups[2].AccessibilityObject, accessibleObject.GetChild(1)); 1705Assert.Null(accessibleObject.GetChild(2)); 1706Assert.Null(accessibleObject.GetChild(3)); 1711Assert.Equal(listView.DefaultGroup.AccessibilityObject, accessibleObject.GetChild(0)); 1712Assert.Null(accessibleObject.GetChild(1)); 1713Assert.Null(accessibleObject.GetChild(2)); 1714Assert.Null(accessibleObject.GetChild(3));
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (22)
611Assert.Null(group1AccObj.GetChild(-1)); 612Assert.Null(group1AccObj.GetChild(1)); 614Assert.Equal(supportsGetChild ? items[0].AccessibilityObject : null, group1AccObj.GetChild(0)); 616Assert.Null(group2AccObj.GetChild(-1)); 617Assert.Null(group2AccObj.GetChild(2)); 618Assert.Equal(supportsGetChild ? items[2].AccessibilityObject : null, group2AccObj.GetChild(0)); 619Assert.Equal(supportsGetChild ? items[3].AccessibilityObject : null, group2AccObj.GetChild(1)); 621Assert.Null(group3AccObj.GetChild(-1)); 622Assert.Null(group3AccObj.GetChild(0)); 624Assert.Null(defaultGroupAccObj.GetChild(-1)); 625Assert.Null(defaultGroupAccObj.GetChild(1)); 626Assert.Equal(supportsGetChild ? items[1].AccessibilityObject : null, defaultGroupAccObj.GetChild(0)); 1094Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0)); 1095Assert.Equal(listView.Groups[0].Items[2].AccessibilityObject, accessibleObject.GetChild(1)); 1096Assert.Null(accessibleObject.GetChild(2)); 1118Assert.Equal(listView.Groups[0].Items[0].AccessibilityObject, accessibleObject.GetChild(0)); 1119Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.GetChild(1)); 1120Assert.Equal(listView.Groups[0].Items[2].AccessibilityObject, accessibleObject.GetChild(2)); 1121Assert.Equal(listView.Groups[0].Items[3].AccessibilityObject, accessibleObject.GetChild(3)); 1122Assert.Null(accessibleObject.GetChild(4)); 1143Assert.Equal(listView.Groups[0].Items[1].AccessibilityObject, accessibleObject.GetChild(0)); 1144Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (34)
1054Assert.Null(accessibleObject1.GetChild(-1)); 1055Assert.Null(accessibleObject2.GetChild(-1)); 1058Assert.Equal(listView.Items[0].SubItems[0].AccessibilityObject, accessibleObject1.GetChild(0)); 1059Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject1.GetChild(1)); 1062accessibleObject1.GetChild(2)); 1064Assert.Equal(listView.Items[1].SubItems[0].AccessibilityObject, accessibleObject2.GetChild(0)); 1065Assert.Equal(listView.Items[1].SubItems[1].AccessibilityObject, accessibleObject2.GetChild(1)); 1068accessibleObject2.GetChild(2)); 1072Assert.Null(accessibleObject1.GetChild(0)); 1073Assert.Null(accessibleObject1.GetChild(1)); 1074Assert.Null(accessibleObject1.GetChild(2)); 1076Assert.Null(accessibleObject2.GetChild(0)); 1077Assert.Null(accessibleObject2.GetChild(1)); 1078Assert.Null(accessibleObject2.GetChild(2)); 1081Assert.Null(accessibleObject1.GetChild(3)); 1082Assert.Null(accessibleObject2.GetChild(3)); 1094Assert.Null(accessibleObject1.GetChild(-1)); 1095Assert.Null(accessibleObject2.GetChild(-1)); 1098Assert.Equal(listView.Items[0].SubItems[0].AccessibilityObject, accessibleObject1.GetChild(0)); 1099Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject1.GetChild(1)); 1100Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject1.GetChild(2)); 1102Assert.Equal(listView.Items[1].SubItems[0].AccessibilityObject, accessibleObject2.GetChild(0)); 1103Assert.Equal(listView.Items[1].SubItems[1].AccessibilityObject, accessibleObject2.GetChild(1)); 1104Assert.Equal(listView.Items[1].SubItems[2].AccessibilityObject, accessibleObject2.GetChild(2)); 1108Assert.Null(accessibleObject1.GetChild(0)); 1109Assert.Null(accessibleObject1.GetChild(1)); 1110Assert.Null(accessibleObject1.GetChild(2)); 1112Assert.Null(accessibleObject2.GetChild(0)); 1113Assert.Null(accessibleObject2.GetChild(1)); 1114Assert.Null(accessibleObject2.GetChild(2)); 1117Assert.Null(accessibleObject1.GetChild(3)); 1118Assert.Null(accessibleObject2.GetChild(3)); 1756Assert.Null(accessibleObject.GetChild(0)); 1760Assert.Throws<InvalidOperationException>(() => accessibleObject.GetChild(0));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (12)
60Assert.Null(accessibleObject.GetChild(-1)); 61Assert.Null(accessibleObject.GetChild(outRangeIndex)); 76Assert.Equal(item.SubItems[0].AccessibilityObject, accessibleObject.GetChild(0)); 77Assert.Equal(item.SubItems[1].AccessibilityObject, accessibleObject.GetChild(1)); 78Assert.Equal(item.SubItems[2].AccessibilityObject, accessibleObject.GetChild(2)); 79Assert.Null(accessibleObject.GetChild(3)); 196AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.GetChild(1); 198Assert.Equal("sub1", listItemAccessibleObject.GetChild(2).Name); 202Assert.Equal("sub2", listItemAccessibleObject.GetChild(2).Name); 220AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.GetChild(1); 222Assert.Equal("sub1", listItemAccessibleObject.GetChild(1).Name); 226Assert.Equal("sub2", listItemAccessibleObject.GetChild(1).Name);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (2)
67Assert.Null(listViewItemAccessibleObject.GetChild(0)); 89Assert.IsType<ListViewItemImageAccessibleObject>(listViewItemAccessibleObject.GetChild(0));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (3)
209Assert.Null(panelAccessibleObject.GetChild(0)); 220Assert.Null(panelAccessibleObject.GetChild(0)); 237Assert.Equal(childPanel.AccessibilityObject, panelAccessibleObject.GetChild(0));
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (6)
110Assert.Null(accessibleObject.GetChild(0)); // GetChild method should not throw an exception 115Assert.True(accessibleObject.GetChild(0) is GridEntry.GridEntryAccessibleObject); // "Accessibility" category entry 116Assert.True(accessibleObject.GetChild(1) is GridEntry.GridEntryAccessibleObject); // "AccessibleDescriptor" entry 117Assert.True(accessibleObject.GetChild(2) is GridEntry.GridEntryAccessibleObject); // "AccessibleName" entry 118Assert.True(accessibleObject.GetChild(3) is GridEntry.GridEntryAccessibleObject); // "AccessibleRole" entry 119Assert.True(accessibleObject.GetChild(4) is GridEntry.GridEntryAccessibleObject); // "Appearance" category entry
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (21)
182Assert.Null(accessibleObject.GetChild(-1)); 183Assert.Null(accessibleObject.GetChild(0)); 184Assert.Null(accessibleObject.GetChild(1)); 185Assert.Null(accessibleObject.GetChild(2)); 186Assert.Null(accessibleObject.GetChild(3)); 187Assert.Null(accessibleObject.GetChild(4)); 201Assert.Null(accessibleObject.GetChild(-1)); 202Assert.Null(accessibleObject.GetChild(0)); 203Assert.Null(accessibleObject.GetChild(1)); 204Assert.Null(accessibleObject.GetChild(2)); 205Assert.Null(accessibleObject.GetChild(3)); 206Assert.Null(accessibleObject.GetChild(4)); 220Assert.Null(accessibleObject.GetChild(-1)); 221Assert.Equal(pages[0].AccessibilityObject, accessibleObject.GetChild(0)); 222Assert.Equal(pages[0].TabAccessibilityObject, accessibleObject.GetChild(1)); 223Assert.Equal(pages[1].TabAccessibilityObject, accessibleObject.GetChild(2)); 224Assert.Null(accessibleObject.GetChild(3)); 225Assert.Null(accessibleObject.GetChild(4)); 241Assert.Equal(pages[0].AccessibilityObject, accessibleObject.GetChild(0)); 245Assert.Equal(pages[1].AccessibilityObject, accessibleObject.GetChild(0)); 249Assert.Equal(pages[2].AccessibilityObject, accessibleObject.GetChild(0));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (19)
206Assert.Null(accessibleObject.GetChild(-1)); 207Assert.Equal(accessibleObject.FirstButtonAccessibleObject, accessibleObject.GetChild(0)); 208Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 209Assert.Equal(accessibleObject.LastButtonAccessibleObject, accessibleObject.GetChild(2)); 210Assert.Null(accessibleObject.GetChild(3)); 221Assert.Null(accessibleObject.GetChild(-1)); 222Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(0)); 223Assert.Equal(accessibleObject.LastButtonAccessibleObject, accessibleObject.GetChild(1)); 224Assert.Null(accessibleObject.GetChild(2)); 235Assert.Null(accessibleObject.GetChild(-1)); 236Assert.Equal(accessibleObject.FirstButtonAccessibleObject, accessibleObject.GetChild(0)); 237Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 238Assert.Null(accessibleObject.GetChild(2)); 239Assert.Null(accessibleObject.GetChild(3)); 250Assert.Null(accessibleObject.GetChild(-1)); 251Assert.Null(accessibleObject.GetChild(0)); 252Assert.Null(accessibleObject.GetChild(1)); 253Assert.Null(accessibleObject.GetChild(2)); 254Assert.Null(accessibleObject.GetChild(3));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (3)
241Assert.Null(accessibleObject.GetChild(-1)); 242Assert.Null(accessibleObject.GetChild(0)); 243Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (3)
242Assert.Null(accessibleObject.GetChild(-1)); 243Assert.Null(accessibleObject.GetChild(0)); 244Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (3)
171Assert.Null(accessibleObject.GetChild(-1)); 172Assert.Null(accessibleObject.GetChild(0)); 173Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
106Assert.Equal(expected, control.AccessibilityObject.GetChild(index));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (3)
20Assert.Null(accessibleObject.GetChild(-1)); 21Assert.Null(accessibleObject.GetChild(0)); 22Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (35)
171Assert.Null(accessibleObject.GetChild(-1)); 172Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 173Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.GetChild(1)); 174Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(2)); 175Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.GetChild(3)); 176Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(4)); 177Assert.Null(accessibleObject.GetChild(5)); 187Assert.Null(accessibleObject.GetChild(-1)); 188Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 189Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 190Assert.Equal(accessibleObject.LastPageButtonAccessibleObject, accessibleObject.GetChild(2)); 191Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(3)); 192Assert.Null(accessibleObject.GetChild(4)); 193Assert.Null(accessibleObject.GetChild(5)); 203Assert.Null(accessibleObject.GetChild(-1)); 204Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 205Assert.Equal(accessibleObject.FirstPageButtonAccessibleObject, accessibleObject.GetChild(1)); 206Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(2)); 207Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(3)); 208Assert.Null(accessibleObject.GetChild(4)); 209Assert.Null(accessibleObject.GetChild(5)); 219Assert.Null(accessibleObject.GetChild(-1)); 220Assert.Equal(accessibleObject.FirstLineButtonAccessibleObject, accessibleObject.GetChild(0)); 221Assert.Equal(accessibleObject.ThumbAccessibleObject, accessibleObject.GetChild(1)); 222Assert.Equal(accessibleObject.LastLineButtonAccessibleObject, accessibleObject.GetChild(2)); 223Assert.Null(accessibleObject.GetChild(3)); 224Assert.Null(accessibleObject.GetChild(4)); 225Assert.Null(accessibleObject.GetChild(5)); 235Assert.Null(accessibleObject.GetChild(-1)); 236Assert.Null(accessibleObject.GetChild(0)); 237Assert.Null(accessibleObject.GetChild(1)); 238Assert.Null(accessibleObject.GetChild(2)); 239Assert.Null(accessibleObject.GetChild(3)); 240Assert.Null(accessibleObject.GetChild(4)); 241Assert.Null(accessibleObject.GetChild(5));
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (10)
57Assert.Null(accessibleObject.GetChild(0)); 61Assert.Equal(verticalScrollBarAO, accessibleObject.GetChild(0)); 62Assert.Null(accessibleObject.GetChild(1)); 65Assert.Equal(horizontalScrollBarAO, accessibleObject.GetChild(0)); 66Assert.Null(accessibleObject.GetChild(1)); 69Assert.Equal(verticalScrollBarAO, accessibleObject.GetChild(0)); 70Assert.Equal(horizontalScrollBarAO, accessibleObject.GetChild(1)); 71Assert.Null(accessibleObject.GetChild(2)); 74Assert.Null(accessibleObject.GetChild(0)); 75Assert.Null(accessibleObject.GetChild(1));
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
33AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1); 49AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1); 81AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1);
System.Windows.Forms.UI.IntegrationTests (23)
ListBoxAccesibleObjectTests.cs (1)
59result.Should().Be(listBox.AccessibilityObject.GetChild(0));
ListBoxItemAccessibleObjestTests.cs (4)
18var itemAccessibleObject = listBox.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 41var itemAccessibleObjectDoubleClick = listBoxDoubleClick.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 45var itemAccessibleObjectNullAction = listBoxNullAction.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 56var itemAccessibleObject = listBox.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
ListViewTests.cs (18)
212Assert.Null(accessibleObject.GetChild(-1)); 213Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.GetChild(0)); 214Assert.Null(accessibleObject.GetChild(1)); 232Assert.Null(accessibleObject.GetChild(-1)); 233Assert.Null(accessibleObject.GetChild(0)); 234Assert.Null(accessibleObject.GetChild(1)); 351Assert.Null(accessibleObject.GetChild(-1)); 352Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.GetChild(0)); 353Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject.GetChild(1)); 354Assert.Equal(listView.Items[0].SubItems[3].AccessibilityObject, accessibleObject.GetChild(2)); 355Assert.Null(accessibleObject.GetChild(3)); 371Assert.Null(accessibleObject.GetChild(-1)); 372Assert.Equal(listView.Items[0].SubItems[1].AccessibilityObject, accessibleObject.GetChild(0)); 373Assert.Equal(listView.Items[0].SubItems[2].AccessibilityObject, accessibleObject.GetChild(1)); 374Assert.Equal(listView.Items[0].SubItems[3].AccessibilityObject, accessibleObject.GetChild(2)); 375Assert.Equal(listView.Items[0].SubItems[4].AccessibilityObject, accessibleObject.GetChild(3)); 376Assert.Equal(listView.Items[0].SubItems[5].AccessibilityObject, accessibleObject.GetChild(4)); 377Assert.Null(accessibleObject.GetChild(5));