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