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