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)
88
public override bool CanSelect =>
_control
is not null && (DesignMode ||
_control
.CanSelect);
121
public Control Control =>
_control
;
131
ObjectDisposedException.ThrowIf(
_control
is null,
_control
);
132
return
_control
;
136
internal AccessibleObject? ControlAccessibilityObject =>
_control
?.AccessibilityObject;
146
if (
_control
is not null)
150
return
_control
.Size;
328
return
_control
is not null ?
_control
.RightToLeft : base.RightToLeft;
332
if (
_control
is null)
337
_control
.RightToLeft = value;
350
public override bool Selected =>
_control
is not null &&
_control
.Focused;
358
if (
_control
is not null)
362
specifiedBounds =
_control
.Bounds;
364
CommonProperties.UpdateSpecifiedBounds(
_control
, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height);
369
if (
_control
is not null)
372
Rectangle bounds =
_control
.Bounds;
375
CommonProperties.UpdateSpecifiedBounds(
_control
, bounds.X, bounds.Y, bounds.Width, bounds.Height);
460
if (disposing &&
_control
is not null)
462
OnUnsubscribeControlEvents(
_control
);
465
_control
.Dispose();
475
return
_control
is not null
476
?
_control
.GetPreferredSize(constrainingSize - Padding.Size) + Padding.Size
643
if (
_control
is not IArrangedElement element)
658
if (bounds !=
_control
.Bounds)
660
bounds = LayoutUtils.Align(
_control
.Size, Bounds, ControlAlign);
685
if (oldParent is not null && Owner is null && newParent is null &&
_control
is not null)
690
= GetControlCollection(
_control
.ParentInternal as ToolStrip);
691
oldControlCollection?.RemoveInternal(
_control
);
805
newControls?.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();