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)) 152using (new LayoutTransaction(_owner, _owner!, PropertyNames.Items)) 184if (_owner is not null && !_owner.IsDisposingItems) 186_owner.SuspendLayout(); 187overflow = _owner.GetOverflow(); 202if (_owner is not null && !_owner.IsDisposingItems) 204_owner.ResumeLayout(); 226if (_owner is ToolStripDropDown dropDown) 317if (_itemsCollection && _owner is not null) 319if (_owner.IsHandleCreated) 321LayoutTransaction.DoLayout(_owner, value, PropertyNames.Parent); 326CommonProperties.xClearPreferredSizeCache(_owner); 329_owner.OnItemAddedInternal(value); 330_owner.OnItemAdded(new ToolStripItemEventArgs(value)); 392if (_owner is not null) 394_owner.OnItemRemovedInternal(item, this); 396if (!_owner.IsDisposingItems) 399_owner.OnItemRemoved(e); 404if (parent is not null && parent != _owner) 496if ((value.ParentInternal == _owner) && (index > indexOfItem)) 514item.SetOwner(_owner);