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)
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
);
806
if (parent is null ||
_control
is null)
811
if (
_control
.IsHandleCreated && !parent.IsHandleCreated)
819
newControls?.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();