Implemented interface member:
property
Owner
System.Windows.Forms.IOwnedObject<TOwner>.Owner
105 references to Owner
System.Windows.Forms (19)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (19)
200
public override string? DefaultAction =>
Owner
?.AccessibleDefaultActionDescription ?? base.DefaultAction;
202
internal override bool CanGetDefaultActionInternal => IsInternal &&
Owner
?.AccessibleDefaultActionDescription is null;
219
public override string? Description =>
Owner
?.AccessibleDescription ?? base.Description;
221
internal override bool CanGetDescriptionInternal => IsInternal &&
Owner
?.AccessibleDescription is null;
224
/// Gets or sets the handle of the accessible object's associated <see cref="
Owner
"/> control.
227
/// An <see cref="IntPtr"/> that represents the handle of the associated <see cref="
Owner
"/> control.
232
/// the <see cref="Control.Handle"/> property of the <see cref="
Owner
"/> it is associated with.
244
_handle =
Owner
?.HWND ?? default;
279
handler(
Owner
, args);
431
AccessibleRole role =
Owner
?.AccessibleRole ?? AccessibleRole.Default;
473
new HandleRef<HWND>(
Owner
, HandleInternal),
506
=>
Owner
is IAutomationLiveRegion || base.IsIAccessibleExSupported();
516
=>
Owner
?.Enabled == true ? VARIANT.True : VARIANT.False,
518
Owner
?.SupportsUiaProviders ?? false
519
=> (VARIANT)
Owner
.CanSelect,
521
=>
Owner
is IAutomationLiveRegion owner
525
=> UIAHelper.WindowHandleToVariant(
Owner
?.InternalHandle ?? HWND.Null),
554
Owner
?.ToolStripControlHost?.Owner?.AccessibilityObject;
557
=> $"{nameof(ControlAccessibleObject)}: Owner = {
Owner
?.ToString() ?? "null"}";
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
356
public override string? Value =>
Owner
?.Text;
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
21
internal ColorPalette? ColorPalette => (ColorPalette?)
Owner
;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (2)
335
public override string DefaultAction => ((SpringControl)
Owner
!).IsSolid
345
if (((SpringControl)
Owner
!).IsSolid)
System\Windows\Forms\Design\ComponentTray.cs (1)
2578
get => ((TrayControl)
Owner
).Component;
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
83
if (cao.
Owner
is not { } owner)
System\Windows\Forms\Design\DesignerFrame.cs (1)
547
foreach (Control c in
Owner
!.Controls)
System.Windows.Forms.Tests (79)
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (1)
25
Assert.Same(button, buttonAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
90
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (1)
32
Assert.NotNull(checkBoxAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
25
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
64
Assert.Same(ownerControl, accessibleObject.
Owner
);
99
Assert.Same(ownerControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
456
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
19
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
16
Assert.Equal(textCellControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
19
Assert.Equal(dateTimePicker, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
19
Assert.Equal(form, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (1)
18
Assert.Equal(linkLabel, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
24
Assert.NotNull(panelAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (1)
24
Assert.NotNull(pictureBoxAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
17
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
31
Assert.Same(ownerControl, accessibilityObject.
Owner
);
56
Assert.Same(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (2)
20
Assert.NotNull(accessibleObject.
Owner
);
21
Assert.Equal(propertyGrid, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGridToolStrip.PropertyGridToolStripAccessibleObjectTests.cs (1)
18
Assert.Equal(propertyGridToolStrip, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (5)
241
PropertyGridView propertyGridView = (PropertyGridView)accessibleObject.
Owner
;
282
Assert.NotNull(accessibleObject.
Owner
);
309
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
321
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
332
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
25
Assert.NotNull(radioButtonAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (1)
16
Assert.Equal(splitContainer, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (1)
24
Assert.NotNull(splitterAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
18
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripContainer.ToolStripContainerAccessibleObjectTests.cs (1)
16
Assert.Equal(toolStripContainer, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (1)
17
Assert.Equal(toolStripDropDown, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
18
Assert.Equal(toolStripOverflow, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripPanel.ToolStripPanelAccessibleObjectTests.cs (1)
17
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (1)
17
Assert.Equal(toolStripProgressBarControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (1)
20
Assert.Equal(textBox, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
34
Assert.Same(ownerControl, accessibilityObject.
Owner
);
57
Assert.Same(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (1)
16
Assert.Equal(upDownEdit, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\WebBrowser.WebBrowserAccessibleObjectTests.cs (1)
17
Assert.Equal(webBrowser, accessibleObject.
Owner
);
System\Windows\Forms\ButtonTests.cs (5)
1007
Assert.Same(control, instance.
Owner
);
1028
Assert.Same(control, instance.
Owner
);
1062
Assert.Same(control, instance.
Owner
);
1084
Assert.Same(control, instance.
Owner
);
1105
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ControlTests.Methods.cs (1)
407
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ControlTests.Properties.cs (2)
31
Assert.Same(control, accessibleObject.
Owner
);
52
Assert.Same(control, accessibleObject.
Owner
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
987
Assert.Same(control, instance.
Owner
);
1002
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\DomainUpDownTests.cs (2)
939
instance.
Owner
.Should().Be(_sub);
952
instance.
Owner
.Should().Be(_sub);
System\Windows\Forms\GroupBoxTests.cs (2)
1384
Assert.Same(control, instance.
Owner
);
1399
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ListBoxTests.cs (1)
4762
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\MenuStripTests.cs (2)
415
Assert.Same(control, instance.
Owner
);
430
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\MonthCalendarTests.cs (1)
2294
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ProgressBarTests.cs (1)
1773
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\CommandsPane.CommandsPaneAccessibleObjectTests.cs (1)
18
Assert.Equal(commandsPane, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DetailsButton.DetailsButtonAccessibleObjectTests.cs (1)
18
Assert.Equal(detailsButton, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
18
Assert.Equal(dropDownButton, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\HelpPane.HelpPaneAccessibleObjectTests.cs (1)
18
Assert.Equal(helpPane, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
46
Assert.Equal(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewListBoxAccessibleObjectTests.cs (1)
22
Assert.Equal(gridViewListBox, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
101
Assert.Equal(gridViewTextBox, accessibleObject.
Owner
);
System\Windows\Forms\RadioButtonTests.cs (7)
410
Assert.Same(control, instance.
Owner
);
431
Assert.Same(control, instance.
Owner
);
454
Assert.Same(control, instance.
Owner
);
476
Assert.Same(control, instance.
Owner
);
518
Assert.Same(control, instance.
Owner
);
541
Assert.Same(control, instance.
Owner
);
563
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\StatusStripTests.cs (1)
866
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2927
Assert.Same(control, instance.
Owner
);
2942
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ToolStripTests.cs (2)
4210
Assert.Same(control, instance.
Owner
);
4225
Assert.Same(control, instance.
Owner
);
TextBoxTests.cs (2)
463
Assert.Same(control, instance.
Owner
);
479
Assert.Same(control, instance.
Owner
);