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))
146
using (new LayoutTransaction(
_owner
,
_owner
!, PropertyNames.Items))
177
if (
_owner
is not null && !
_owner
.IsDisposingItems)
179
_owner
.SuspendLayout();
180
overflow =
_owner
.GetOverflow();
195
if (
_owner
is not null && !
_owner
.IsDisposingItems)
197
_owner
.ResumeLayout();
219
if (
_owner
is ToolStripDropDown dropDown)
310
if (_itemsCollection &&
_owner
is not null)
312
if (
_owner
.IsHandleCreated)
314
LayoutTransaction.DoLayout(
_owner
, value, PropertyNames.Parent);
319
CommonProperties.xClearPreferredSizeCache(
_owner
);
322
_owner
.OnItemAddedInternal(value);
323
_owner
.OnItemAdded(new ToolStripItemEventArgs(value));
385
if (
_owner
is not null)
387
_owner
.OnItemRemovedInternal(item, this);
389
if (!
_owner
.IsDisposingItems)
392
_owner
.OnItemRemoved(e);
397
if (parent is not null && parent !=
_owner
)
495
if ((value.ParentInternal ==
_owner
) && (index > indexOfItem))
513
item.SetOwner(
_owner
);