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)
199
public override string? DefaultAction =>
Owner
?.AccessibleDefaultActionDescription ?? base.DefaultAction;
201
internal override bool CanGetDefaultActionInternal => IsInternal &&
Owner
?.AccessibleDefaultActionDescription is null;
218
public override string? Description =>
Owner
?.AccessibleDescription ?? base.Description;
220
internal override bool CanGetDescriptionInternal => IsInternal &&
Owner
?.AccessibleDescription is null;
223
/// Gets or sets the handle of the accessible object's associated <see cref="
Owner
"/> control.
226
/// An <see cref="IntPtr"/> that represents the handle of the associated <see cref="
Owner
"/> control.
231
/// the <see cref="Control.Handle"/> property of the <see cref="
Owner
"/> it is associated with.
243
_handle =
Owner
?.HWND ?? default;
278
handler(
Owner
, args);
430
AccessibleRole role =
Owner
?.AccessibleRole ?? AccessibleRole.Default;
472
new HandleRef<HWND>(
Owner
, HandleInternal),
505
=>
Owner
is IAutomationLiveRegion || base.IsIAccessibleExSupported();
515
=>
Owner
?.Enabled == true ? VARIANT.True : VARIANT.False,
517
Owner
?.SupportsUiaProviders ?? false
518
=> (VARIANT)
Owner
.CanSelect,
520
=>
Owner
is IAutomationLiveRegion owner
524
=> UIAHelper.WindowHandleToVariant(
Owner
?.InternalHandle ?? HWND.Null),
553
Owner
?.ToolStripControlHost?.Owner?.AccessibilityObject;
556
=> $"{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)
27
Assert.Same(button, buttonAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (1)
92
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (1)
34
Assert.NotNull(checkBoxAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
27
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
77
Assert.Same(ownerControl, accessibleObject.
Owner
);
112
Assert.Same(ownerControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
458
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (1)
21
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (1)
18
Assert.Equal(textCellControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
21
Assert.Equal(dateTimePicker, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
21
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)
26
Assert.NotNull(panelAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (1)
26
Assert.NotNull(pictureBoxAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
19
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
33
Assert.Same(ownerControl, accessibilityObject.
Owner
);
58
Assert.Same(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (2)
21
Assert.NotNull(accessibleObject.
Owner
);
22
Assert.Equal(propertyGrid, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGridToolStrip.PropertyGridToolStripAccessibleObjectTests.cs (1)
20
Assert.Equal(propertyGridToolStrip, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (5)
243
PropertyGridView propertyGridView = (PropertyGridView)accessibleObject.
Owner
;
284
Assert.NotNull(accessibleObject.
Owner
);
311
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
323
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
334
PropertyGridView propertyGridView = (PropertyGridView)gridViewAccessibleObject.
Owner
;
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
27
Assert.NotNull(radioButtonAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (1)
18
Assert.Equal(splitContainer, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (1)
26
Assert.NotNull(splitterAccessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
20
Assert.NotNull(accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripContainer.ToolStripContainerAccessibleObjectTests.cs (1)
18
Assert.Equal(toolStripContainer, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (1)
19
Assert.Equal(toolStripDropDown, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (1)
20
Assert.Equal(toolStripOverflow, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripPanel.ToolStripPanelAccessibleObjectTests.cs (1)
19
Assert.Equal(control, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (1)
19
Assert.Equal(toolStripProgressBarControl, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (1)
22
Assert.Equal(textBox, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
36
Assert.Same(ownerControl, accessibilityObject.
Owner
);
59
Assert.Same(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (1)
18
Assert.Equal(upDownEdit, accessibleObject.
Owner
);
System\Windows\Forms\AccessibleObjects\WebBrowser.WebBrowserAccessibleObjectTests.cs (1)
19
Assert.Equal(webBrowser, accessibleObject.
Owner
);
System\Windows\Forms\ButtonTests.cs (5)
1009
Assert.Same(control, instance.
Owner
);
1030
Assert.Same(control, instance.
Owner
);
1064
Assert.Same(control, instance.
Owner
);
1086
Assert.Same(control, instance.
Owner
);
1107
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ControlTests.Methods.cs (1)
408
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ControlTests.Properties.cs (2)
33
Assert.Same(control, accessibleObject.
Owner
);
54
Assert.Same(control, accessibleObject.
Owner
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
989
Assert.Same(control, instance.
Owner
);
1004
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\DomainUpDownTests.cs (2)
941
instance.
Owner
.Should().Be(_sub);
954
instance.
Owner
.Should().Be(_sub);
System\Windows\Forms\GroupBoxTests.cs (2)
1386
Assert.Same(control, instance.
Owner
);
1401
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ListBoxTests.cs (1)
4764
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\MenuStripTests.cs (2)
417
Assert.Same(control, instance.
Owner
);
432
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\MonthCalendarTests.cs (1)
2296
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ProgressBarTests.cs (1)
1775
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)
20
Assert.Equal(detailsButton, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
20
Assert.Equal(dropDownButton, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\HelpPane.HelpPaneAccessibleObjectTests.cs (1)
20
Assert.Equal(helpPane, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
48
Assert.Equal(ownerControl, accessibilityObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewListBoxAccessibleObjectTests.cs (1)
24
Assert.Equal(gridViewListBox, accessibleObject.
Owner
);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
103
Assert.Equal(gridViewTextBox, accessibleObject.
Owner
);
System\Windows\Forms\RadioButtonTests.cs (7)
412
Assert.Same(control, instance.
Owner
);
433
Assert.Same(control, instance.
Owner
);
456
Assert.Same(control, instance.
Owner
);
478
Assert.Same(control, instance.
Owner
);
520
Assert.Same(control, instance.
Owner
);
543
Assert.Same(control, instance.
Owner
);
565
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\StatusStripTests.cs (1)
868
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2929
Assert.Same(control, instance.
Owner
);
2944
Assert.Same(control, instance.
Owner
);
System\Windows\Forms\ToolStripTests.cs (2)
4212
Assert.Same(control, instance.
Owner
);
4227
Assert.Same(control, instance.
Owner
);
TextBoxTests.cs (2)
465
Assert.Same(control, instance.
Owner
);
481
Assert.Same(control, instance.
Owner
);