1 write to Owner
System.Windows.Forms (1)
System\Windows\Forms\Control.ControlCollection.cs (1)
26
Owner
= owner.OrThrowIfNull();
37 references to Owner
System.Windows.Forms (19)
System\Windows\Forms\Control.ControlCollection.cs (19)
56
if (
Owner
.CreateThreadId != value.CreateThreadId)
61
CheckParentingCycle(
Owner
, value);
63
if (value._parent ==
Owner
)
94
using (SuspendLayoutScope scope = new(
Owner
, performLayout: false))
102
value.AssignParent(
Owner
);
106
if (oldParent != value._parent && (
Owner
._state & States.Created) != 0)
108
value.SetParentHandle(
Owner
.InternalHandle);
121
LayoutTransaction.DoLayout(
Owner
, value, PropertyNames.Parent);
122
Owner
.OnControlAdded(new ControlEventArgs(value));
148
using SuspendLayoutScope scope = new(
Owner
, performLayout: true);
159
ControlCollection ccOther =
Owner
.CreateControlsInstance();
294
if (value.ParentInternal ==
Owner
)
301
LayoutTransaction.DoLayout(
Owner
, value, PropertyNames.Parent);
302
Owner
.OnControlRemoved(new ControlEventArgs(value));
305
if (
Owner
.GetContainerControl() is ContainerControl cc)
307
cc.AfterControlRemoved(value,
Owner
);
382
using SuspendLayoutScope scope = new(
Owner
);
385
CommonProperties.xClearAllPreferredSizeCaches(
Owner
);
438
LayoutTransaction.DoLayout(
Owner
, child, PropertyNames.ChildIndex);
System.Windows.Forms.Tests (18)
System\Windows\Forms\ControlTests.ControlCollection.cs (2)
22
Assert.Same(owner, collection.
Owner
);
1359
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\ControlTests.Methods.cs (1)
614
Assert.Same(control, controls.
Owner
);
System\Windows\Forms\DataGridView.DataGridViewControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\Form.ControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\MdiClient.ControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\MdiClientTests.cs (1)
41
Assert.Same(control, Assert.IsType<MdiClient.ControlCollection>(control.Controls).
Owner
);
System\Windows\Forms\ReadOnlyControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\SplitContainer.SplitContainerTypedControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (1)
20
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\TabControlTests.cs (1)
2996
Assert.Same(control, controls.
Owner
);
System\Windows\Forms\TableLayoutControlCollectionTests.cs (1)
14
Assert.Equal(container, collection.
Owner
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
631
Assert.Same(control, controls.
Owner
);
System\Windows\Forms\TabPageTests.cs (1)
3746
Assert.Same(control, controls.
Owner
);
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (1)
15
Assert.Same(owner, collection.
Owner
);
System\Windows\Forms\ToolStripTests.cs (2)
4237
Assert.Same(control, controls.
Owner
);
4261
Assert.Same(control, controls.
Owner
);
System\Windows\Forms\TypedControlCollectionTests.cs (1)
16
Assert.Same(owner, collection.
Owner
);