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