2 writes to _control
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
36_control = c.OrThrowIfNullWithMessage(SR.ControlCannotBeNull); 466_control = null!;
44 references to _control
System.Windows.Forms (44)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (44)
88public override bool CanSelect => _control is not null && (DesignMode || _control.CanSelect); 121public Control Control => _control; 131ObjectDisposedException.ThrowIf(_control is null, _control); 132return _control; 136internal AccessibleObject? ControlAccessibilityObject => _control?.AccessibilityObject; 146if (_control is not null) 150return _control.Size; 328return _control is not null ? _control.RightToLeft : base.RightToLeft; 332if (_control is null) 337_control.RightToLeft = value; 350public override bool Selected => _control is not null && _control.Focused; 358if (_control is not null) 362specifiedBounds = _control.Bounds; 364CommonProperties.UpdateSpecifiedBounds(_control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height); 369if (_control is not null) 372Rectangle bounds = _control.Bounds; 375CommonProperties.UpdateSpecifiedBounds(_control, bounds.X, bounds.Y, bounds.Width, bounds.Height); 460if (disposing && _control is not null) 462OnUnsubscribeControlEvents(_control); 465_control.Dispose(); 475return _control is not null 476? _control.GetPreferredSize(constrainingSize - Padding.Size) + Padding.Size 643if (_control is not IArrangedElement element) 658if (bounds != _control.Bounds) 660bounds = LayoutUtils.Align(_control.Size, Bounds, ControlAlign); 685if (oldParent is not null && Owner is null && newParent is null && _control is not null) 690= GetControlCollection(_control.ParentInternal as ToolStrip); 691oldControlCollection?.RemoveInternal(_control); 805newControls?.AddInternal(_control); 817=> _control is not null ? _control.ProcessMnemonic(charCode) : base.ProcessMnemonic(charCode); 855_control?.ReleaseUiaProvider(HWND.Null); 862=> _control is not null ? _control.ShouldSerializeBackColor() : base.ShouldSerializeBackColor(); 865=> _control is not null ? _control.ShouldSerializeForeColor() : base.ShouldSerializeForeColor(); 868=> _control is not null ? _control.ShouldSerializeFont() : base.ShouldSerializeFont(); 871=> _control is not null ? _control.ShouldSerializeRightToLeft() : base.ShouldSerializeRightToLeft();