214 references to AccessibilityObject
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
83return owner.Rows[actualRowIndex].AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (5)
116return _owner.OwningRow?.AccessibilityObject; 506AccessibleObject? previousRow = _owner.OwningRow.AccessibilityObject.Navigate(AccessibleNavigation.Previous); 518return _owner.DataGridView.RowHeadersVisible ? _owner.OwningRow.AccessibilityObject.GetChild(0) : null; 545AccessibleObject? nextRow = _owner.OwningRow.AccessibilityObject.Navigate(AccessibleNavigation.Next); 653return _owner.OwningRow.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1746PInvoke.UiaDisconnectProvider(AccessibilityObject);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (5)
22public override AccessibleObject Parent => _owningDataGridViewRow.AccessibilityObject; 47for (int i = 1; i < _owningDataGridViewRow.AccessibilityObject.GetChildCount(); i++) 49AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.GetChild(i); 70for (int i = 1; i < _owningDataGridViewRow.AccessibilityObject.GetChildCount(); i++) 72AccessibleObject? child = _owningDataGridViewRow.AccessibilityObject.GetChild(i);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (3)
78return Owner.OwningRow?.AccessibilityObject; 259NavigateDirection.NavigateDirection_Parent => Owner.OwningRow.AccessibilityObject, 262? Owner.OwningRow.AccessibilityObject.GetChild(1) // go to the next sibling
System.Windows.Forms.Tests (199)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (19)
391Assert.Equal(row.ReadOnly, row.AccessibilityObject.IsReadOnly); 416Assert.Equal(row.ReadOnly, row.AccessibilityObject.IsReadOnly); 441Assert.Equal(row.ReadOnly, row.AccessibilityObject.IsReadOnly); 754Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 775Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 820Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 843Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 886Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 887Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 906Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 907Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 948Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 968Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 1008Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1009Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1028Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1029Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1070Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1090Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (4)
58int accRowWidth = dataGridView.Rows[0].AccessibilityObject.BoundingRectangle.Width; 89int accRowWidth = dataGridView.Rows[0].AccessibilityObject.BoundingRectangle.Width; 318yield return new object[] { new DataGridViewCellAccessibleObject(cell), row.AccessibilityObject }; 1062Assert.Equal(row.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (166)
86AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 87AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 88AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 107AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 108AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 109AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 128AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 129AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 130AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 149AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 150AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 151AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 317Assert.Equal(owner.AccessibilityObject, selectedAccessibleObject.Parent); 395Assert.Null(dataGridViewRow.AccessibilityObject.FragmentRoot); 402bool actualValue = (bool)dataGridViewRow.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId); 417AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 418AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 419AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 420AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 447AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 448AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 449AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 474AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 475AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 476AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 501AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 502AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 503AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 526AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 527AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 528AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 550AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 551AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 571AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 572AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 592AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 593AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 612AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 613AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 614AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 615AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 640AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 641AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 642AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 665AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 666AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 667AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 690AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 691AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 692AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 714AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 715AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 716AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 741AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 742AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 765AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 766AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 789AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 790AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 812AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 813AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 814AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 815AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 842AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 843AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 844AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 869AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 870AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 871AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 896AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 897AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 898AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 921AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 922AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 923AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 945AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 946AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 966AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 967AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 987AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 988AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1007AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1008AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1009AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1010AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1035AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1036AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1037AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1060AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1061AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1062AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1085AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1086AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1087AccessibleObject accessibleObject4 = dataGridView.Rows[3].AccessibilityObject; 1109AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1110AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1111AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1136AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1137AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1160AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1161AccessibleObject accessibleObject3 = dataGridView.Rows[2].AccessibilityObject; 1184AccessibleObject accessibleObject1 = dataGridView.Rows[0].AccessibilityObject; 1185AccessibleObject accessibleObject2 = dataGridView.Rows[1].AccessibilityObject; 1204AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1219AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1235AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1253AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1271AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1291AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1307AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1325AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1343AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1363AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1382AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1403AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1424AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1445AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1465AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1486AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1507AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1528AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1544AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1560AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1578AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1596AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1616AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1632AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1650AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1668AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1688AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1707AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1728AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1749AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1770AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1790AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1811AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1832AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1853AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1873AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1889AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1910AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1929AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1948AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1966AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 1991AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2009AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2030AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2051AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2074AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2098AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2120AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2142AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2163AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2189AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2213AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2237AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2257AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2272AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2288AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2305AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2319AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2334AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2350AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2367AccessibleObject rowAccessibleObject = dataGridView.Rows[0].AccessibilityObject; 2386Assert.Equal("test1", ((BSTR)dataGridView.Rows[0].AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()); 2401Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.Rows[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (3)
35Assert.Equal(cell.OwningRow.AccessibilityObject, accessibleObject.Parent); 60Assert.Equal(row.AccessibilityObject.Name, row.HeaderCell.AccessibilityObject.Name); 145AccessibleObject expected = row.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (2)
31accRowHeightSum += dataGridView.Rows[i].AccessibilityObject.BoundingRectangle.Height; 60accRowHeightSum += dataGridView.Rows[i].AccessibilityObject.BoundingRectangle.Height;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
65Assert.Equal(row.AccessibilityObject, accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (1)
21AccessibleObject expectedNextSibling = dataGridView.Rows[0].AccessibilityObject;
System\Windows\Forms\DataGridViewRowTests.cs (3)
5805Assert.Same(AccessibilityObject, AccessibilityObject); 5806DataGridViewRowAccessibleObject accessibilityObject = Assert.IsType<DataGridViewRowAccessibleObject>(AccessibilityObject);