65 references to LastChild
System.Windows.Forms (11)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2604case AccessibleNavigation.LastChild:
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
148case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
195AccessibleNavigation.LastChild => GetChild(GetChildCount() - 1),
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
63case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
177case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (2)
381case AccessibleNavigation.LastChild: 464NavigateDirection.NavigateDirection_LastChild => Navigate(AccessibleNavigation.LastChild),
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
111case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
272case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
460case AccessibleNavigation.LastChild:
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
246case AccessibleNavigation.LastChild:
System.Windows.Forms.Tests (54)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (4)
460.Setup(a => a.Navigate(AccessibleNavigation.LastChild)) 462Assert.Same(result, mockAccessibleObject.Object.Navigate(AccessibleNavigation.LastChild)); 564[InlineData(AccessibleNavigation.LastChild, true, false)] 587[InlineData(AccessibleNavigation.LastChild, false)]
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (6)
1007Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1027Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1048Assert.Null(dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1068Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1088Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1109Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (3)
524Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 537Assert.Null(accessibleObject0.Navigate(AccessibleNavigation.LastChild)); 539Assert.Null(accessibleObject1.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (19)
331yield return new object[] { new DataGridViewRowAccessibleObject(new DataGridViewRow()), AccessibleNavigation.LastChild + 1, null }; 353[InlineData(AccessibleNavigation.LastChild)] 1545Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1563Assert.Equal(accessibleObject3, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1581Assert.Equal(accessibleObject3, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1599Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1617Assert.Null(rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1635Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1653Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1671Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1690Assert.Equal(topLeftAccessibilityObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1710Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1731Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1752Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1773Assert.Equal(accessibleObject2, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1793Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1814Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1835Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 1856Assert.Equal(accessibleObject, rowAccessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (2)
167Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 188Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (2)
174Assert.Null(accessibleObject.Navigate(AccessibleNavigation.LastChild)); 196Assert.Equal(selecetedCell1.AccessibilityObject, accessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (17)
408Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 426Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 444Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 462Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 480Assert.Null(topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 498Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 516Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 534Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 553Assert.Equal(topLeftAccessibilityObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 573Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 594Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 615Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 636Assert.Equal(accessibleObject2, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 656Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 677Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 698Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild)); 719Assert.Equal(accessibleObject, topRowAccessibleObject.Navigate(AccessibleNavigation.LastChild));
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
253Assert.Equal(buttonLast.AccessibilityObject, panel.AccessibilityObject.Navigate(AccessibleNavigation.LastChild));