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!;
46 references to _control
System.Windows.Forms (46)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (46)
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); 806if (parent is null || _control is null) 811if (_control.IsHandleCreated && !parent.IsHandleCreated) 819newControls?.AddInternal(_control); 831=> _control is not null ? _control.ProcessMnemonic(charCode) : base.ProcessMnemonic(charCode); 869_control?.ReleaseUiaProvider(HWND.Null); 876=> _control is not null ? _control.ShouldSerializeBackColor() : base.ShouldSerializeBackColor(); 879=> _control is not null ? _control.ShouldSerializeForeColor() : base.ShouldSerializeForeColor(); 882=> _control is not null ? _control.ShouldSerializeFont() : base.ShouldSerializeFont(); 885=> _control is not null ? _control.ShouldSerializeRightToLeft() : base.ShouldSerializeRightToLeft();