2 writes to _owner
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (2)
31
_owner
= owner;
38
_owner
= owner.OrThrowIfNull();
29 references to _owner
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (29)
95
ToolStripItem item =
_owner
!.CreateDefaultItem(text, image, onClick);
106
if (_itemsCollection &&
_owner
is not null)
108
_owner
.OnItemAddedInternal(value);
109
_owner
.OnItemAdded(new ToolStripItemEventArgs(value));
126
using (new LayoutTransaction(
_owner
,
_owner
!, PropertyNames.Items))
152
using (new LayoutTransaction(
_owner
,
_owner
!, PropertyNames.Items))
184
if (
_owner
is not null && !
_owner
.IsDisposingItems)
186
_owner
.SuspendLayout();
187
overflow =
_owner
.GetOverflow();
202
if (
_owner
is not null && !
_owner
.IsDisposingItems)
204
_owner
.ResumeLayout();
226
if (
_owner
is ToolStripDropDown dropDown)
317
if (_itemsCollection &&
_owner
is not null)
319
if (
_owner
.IsHandleCreated)
321
LayoutTransaction.DoLayout(
_owner
, value, PropertyNames.Parent);
326
CommonProperties.xClearPreferredSizeCache(
_owner
);
329
_owner
.OnItemAddedInternal(value);
330
_owner
.OnItemAdded(new ToolStripItemEventArgs(value));
392
if (
_owner
is not null)
394
_owner
.OnItemRemovedInternal(item, this);
396
if (!
_owner
.IsDisposingItems)
399
_owner
.OnItemRemoved(e);
404
if (parent is not null && parent !=
_owner
)
496
if ((value.ParentInternal ==
_owner
) && (index > indexOfItem))
514
item.SetOwner(
_owner
);