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