5 implementations of Container
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
12592
IArrangedElement? IArrangedElement.
Container
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
966
IArrangedElement? IArrangedElement.
Container
=> ParentInternal ?? Owner;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
60
IArrangedElement? IArrangedElement.
Container
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
636
IArrangedElement IArrangedElement.
Container
System\Windows\Forms\Layout\ArrangedElement.cs (1)
40
IArrangedElement? IArrangedElement.
Container
29 references to Container
System.Windows.Forms (29)
System\Windows\Forms\Layout\CommonProperties.cs (5)
192
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.Margin);
212
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.MaximumSize);
227
using (new LayoutTransaction(element.
Container
as Control, element, PropertyNames.MinimumSize))
500
if (element.
Container
is Control { LayoutEngine: DefaultLayout })
658
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.FlowBreak);
System\Windows\Forms\Layout\DefaultLayout.cs (15)
712
Debug.Assert(!HasCachedBounds(element.
Container
), "Do not call this method with an active cached bounds list.");
714
if (element.
Container
is null)
748
Rectangle parentDisplayRect = element.
Container
.DisplayRectangle;
914
if (element.
Container
is not null)
918
if (element.
Container
.
Container
is not null && (rightReleased || bottomReleased))
923
LayoutTransaction.DoLayout(element.
Container
.
Container
, element, PropertyNames.Anchor);
926
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.Anchor);
935
Debug.Assert(!HasCachedBounds(element.
Container
), "Do not call this method with an active cached bounds list.");
944
using (new LayoutTransaction(element.
Container
as Control, element, PropertyNames.Dock))
988
Rectangle displayRect = element.
Container
!.DisplayRectangle;
1005
if (element.
Container
is { } container)
1052
Debug.Assert(element.
Container
== container, "We have non-children in our containers cached bounds store.");
1074
if (element.
Container
is { } container && bounds != GetCachedBounds(element))
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (9)
261
if (element.
Container
is not null)
263
TableLayout.ClearCachedAssignments(TableLayout.GetContainerInfo(element.
Container
));
267
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.ColumnSpan);
299
if (element.
Container
is not null)
301
TableLayout.ClearCachedAssignments(TableLayout.GetContainerInfo(element.
Container
));
305
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.RowSpan);
430
if (element.
Container
is not null)
432
TableLayout.ClearCachedAssignments(TableLayout.GetContainerInfo(element.
Container
));
446
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.TableIndex);