5 implementations of Container
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
12701
IArrangedElement? IArrangedElement.
Container
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
971
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)
716
Debug.Assert(!HasCachedBounds(element.
Container
), "Do not call this method with an active cached bounds list.");
718
if (element.
Container
is null)
752
Rectangle parentDisplayRect = element.
Container
.DisplayRectangle;
921
if (element.
Container
is not null)
925
if (element.
Container
.
Container
is not null && (rightReleased || bottomReleased))
930
LayoutTransaction.DoLayout(element.
Container
.
Container
, element, PropertyNames.Anchor);
933
LayoutTransaction.DoLayout(element.
Container
, element, PropertyNames.Anchor);
942
Debug.Assert(!HasCachedBounds(element.
Container
), "Do not call this method with an active cached bounds list.");
951
using (new LayoutTransaction(element.
Container
as Control, element, PropertyNames.Dock))
995
Rectangle displayRect = element.
Container
!.DisplayRectangle;
1012
if (element.
Container
is { } container)
1059
Debug.Assert(element.
Container
== container, "We have non-children in our containers cached bounds store.");
1081
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);