25 overrides of Parent
System.Windows.Forms (22)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
336public override AccessibleObject? Parent => base.Parent;
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
21public override AccessibleObject Parent => _parentAccessibleObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
66public override AccessibleObject Parent
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
106public override AccessibleObject? Parent => ParentPrivate;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
122public override AccessibleObject? Parent => ParentPrivate;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
22public override AccessibleObject Parent => _owningDataGridViewRow.AccessibilityObject;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
126public override AccessibleObject Parent => _linkLabelAccessibleObject;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
37public override AccessibleObject Parent => _owningAccessibleObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
36public override AccessibleObject Parent => _owningItem.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
96public override AccessibleObject Parent => ParentInternal;
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (1)
36public override AccessibleObject? Parent =>
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
206public override AccessibleObject Parent => _monthCalendarAccessibleObject;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
198public override AccessibleObject Parent => _calendarAccessibleObject;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
49public override AccessibleObject Parent => _monthCalendarAccessibleObject;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
189public override AccessibleObject Parent => _calendarBodyAccessibleObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
72public override AccessibleObject? Parent =>
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
314public override AccessibleObject? Parent
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
140public override AccessibleObject? Parent => _owningTreeNode.Parent?.AccessibilityObject;
System\Windows\Forms\Controls\TreeView\TreeViewLabelEditAccessibleObject.cs (1)
29public override AccessibleObject? Parent =>
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (1)
35public override AccessibleObject? Parent => null;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
100public override AccessibleObject Parent => _parent;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
113public override AccessibleObject? Parent => _window?.AccessibilityObject;
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
49public override AccessibleObject Parent => _parent;
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
34public override AccessibleObject? Parent => _control.AccessibilityObject.Parent;
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
772public override AccessibleObject Parent => ParentResult;
56 references to Parent
System.Windows.Forms (11)
System\Windows\Forms\Accessibility\AccessibleObject.cs (5)
2256AccessibleObject? accessibleObject = Parent; 2548AccessibleObject? parent = Parent; 2573AccessibleObject? parent = Parent; 2609if (Parent?.GetChildCount() > 0) 2618if (Parent?.GetChildCount() > 0)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
336public override AccessibleObject? Parent => base.Parent;
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
28NavigateDirection.NavigateDirection_Parent => Parent,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarChildAccessibleObject.cs (1)
48NavigateDirection.NavigateDirection_Parent => Parent,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
325return (Owner.Parent is not null) ? Owner.Parent.AccessibilityObject : base.Parent;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownBaseAccessibleObject.cs (2)
230 => owner.TextBox.AccessibilityObject.Parent, 251 => owner.UpDownButtonsInternal.AccessibilityObject.Parent,
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
34public override AccessibleObject? Parent => _control.AccessibilityObject.Parent;
System.Windows.Forms.Tests (44)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (18)
27Assert.Null(accessibleObject.Parent); 497.Setup(a => a.Parent) 504mockAccessibleObject.Verify(a => a.Parent, Times.Once()); 522.Setup(a => a.Parent) 622Assert.Null(accessibleObject.Parent); 641Assert.NotNull(accessibleObject.Parent); 662Assert.NotNull(accessibleObject.Parent); 688Assert.Null(accessibleObject.Parent); 707Assert.Null(accessibleObject.Parent); 726Assert.NotNull(accessibleObject.Parent); 745Assert.NotNull(accessibleObject.Parent); 766Assert.Null(accessibleObject.Parent); 787Assert.NotNull(accessibleObject.Parent); 808Assert.NotNull(accessibleObject.Parent); 1277.Setup(a => a.Parent) 1282mockAccessibleObject.Verify(a => a.Parent, Times.Once()); 1292.Setup(a => a.Parent) 1297mockAccessibleObject.Verify(a => a.Parent, Times.Once());
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
467Assert.NotNull(accessibleObject.Parent); 477Assert.Null(accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
323Assert.Equal(expected, accessibleObject.Parent); 330Assert.Throws<InvalidOperationException>(() => accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
192Assert.Same(expected, accessibleObject.Parent); 199Assert.Throws<InvalidOperationException>(() => accessibleObject.Parent); 315Assert.Equal(owner.AccessibilityObject, selectedAccessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
60Assert.Equal(control.AccessibilityObject, accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
63Assert.Equal(row.AccessibilityObject, accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
71Assert.Equal(window.AccessibilityObject, accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
127actualAccessibilityObject = controlItem1_AccessibilityObject.Parent; 130actualAccessibilityObject = controlItem2_AccessibilityObject.Parent;
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (2)
136AccessibleObject actual = linkAccessibleObject.Parent; 138Assert.Equal(linkLabel.AccessibilityObject, linkAccessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
21Assert.Equal(controlAccessibleObject, calendar.Parent); 259Assert.Equal(controlAccessibleObject, calendar.Parent);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (2)
20accessibleObject.Parent.Should().Be(calendarAccessibleObject); 165Assert.Equal(calendarAccessibleObject, accessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (2)
18buttonAccessibleObject.Parent.Should().Be(controlAccessibleObject); 80AccessibleObject actual = buttonAccessibleObject.Parent;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
21headerAccessibleObject.Parent.Should().BeOfType<CalendarAccessibleObject>();
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (1)
77AccessibleObject actual = rowAccessibleObject.Parent;
System\Windows\Forms\DataGridViewCellTests.cs (4)
4760Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4761Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 4769Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4770Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent);