1 write to resizeControl
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
351
_resizeComponents[i].
resizeControl
= components[i];
35 references to resizeControl
System.Windows.Forms.Design (35)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (35)
210
_resizeComponents[i].resizeBounds = _resizeComponents[i].
resizeControl
.Bounds;
213
components.Add(_resizeComponents[i].
resizeControl
);
218
if (designerHost.GetDesigner(_resizeComponents[i].
resizeControl
) is ControlDesigner designer)
224
Debug.Fail($"Initiating resize. Could not get the designer for {_resizeComponents[i].
resizeControl
}");
239
string name = TypeDescriptor.GetComponentName(_resizeComponents[0].
resizeControl
);
242
name = _resizeComponents[0].
resizeControl
.GetType().Name;
264
if (_resizeComponents[0].
resizeControl
is Control control && control.Parent is not null)
380
Control control = _resizeComponents[i].
resizeControl
;
518
propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Width"];
519
propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Height"];
520
propTop = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Top"];
521
propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Left"];
545
Control targetControl = _resizeComponents[0].
resizeControl
;
635
Control control = _resizeComponents[i].
resizeControl
;
767
propWidth.SetValue(_resizeComponents[i].
resizeControl
, bounds.Width);
773
propHeight.SetValue(_resizeComponents[i].
resizeControl
, bounds.Height);
779
propLeft.SetValue(_resizeComponents[i].
resizeControl
, bounds.X);
785
propTop.SetValue(_resizeComponents[i].
resizeControl
, bounds.Y);
924
PropertyDescriptor propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Width"];
925
PropertyDescriptor propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Height"];
926
PropertyDescriptor propTop = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Top"];
927
PropertyDescriptor propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].
resizeControl
)["Left"];
930
if (propWidth is not null && _resizeComponents[i].
resizeControl
.Width != _resizeComponents[i].resizeBounds.Width)
932
propWidth.SetValue(_resizeComponents[i].
resizeControl
, _resizeComponents[i].
resizeControl
.Width);
935
if (propHeight is not null && _resizeComponents[i].
resizeControl
.Height != _resizeComponents[i].resizeBounds.Height)
937
propHeight.SetValue(_resizeComponents[i].
resizeControl
, _resizeComponents[i].
resizeControl
.Height);
940
if (propTop is not null && _resizeComponents[i].
resizeControl
.Top != _resizeComponents[i].resizeBounds.Y)
942
propTop.SetValue(_resizeComponents[i].
resizeControl
, _resizeComponents[i].
resizeControl
.Top);
945
if (propLeft is not null && _resizeComponents[i].
resizeControl
.Left != _resizeComponents[i].resizeBounds.X)
947
propLeft.SetValue(_resizeComponents[i].
resizeControl
, _resizeComponents[i].
resizeControl
.Left);
950
if (_resizeComponents[i].
resizeControl
== _primaryControl && _statusCommandUI is not null)