10 overrides of LayoutEngine
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1278public override LayoutEngine LayoutEngine
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
169public override LayoutEngine LayoutEngine
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
23public override LayoutEngine LayoutEngine => FlowLayout.Instance;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
32public override LayoutEngine LayoutEngine => TableLayout.Instance;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ButtonTests.cs (1)
402public override LayoutEngine LayoutEngine => _layoutEngine;
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3596public override LayoutEngine LayoutEngine => _layoutEngine;
System\Windows\Forms\ControlTests.Methods.cs (1)
3005public override LayoutEngine LayoutEngine => _layoutEngine;
System\Windows\Forms\GroupBoxTests.cs (1)
372public override LayoutEngine LayoutEngine => _layoutEngine;
System\Windows\Forms\PanelTests.cs (1)
360public override LayoutEngine LayoutEngine => _layoutEngine;
System\Windows\Forms\UserControlTests.cs (1)
475public override LayoutEngine LayoutEngine => _layoutEngine;
173 references to LayoutEngine
System.Windows.Forms (26)
System\Windows\Forms\Control.cs (9)
623if (value && parent.LayoutEngine == DefaultLayout.Instance) 625parent.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 4228ParentInternal?.LayoutEngine.InitLayout(this, BoundsSpecified.All); 5765LayoutEngine.InitLayout(this, BoundsSpecified.All); 7682bool parentRequiresLayout = LayoutEngine.Layout(this, levent); 8382LayoutEngine.ProcessSuspendedLayoutEventArgs(this, args); 9449LayoutEngine.InitLayout(child, BoundsSpecified.All); 9779&& (parent.LayoutEngine == DefaultLayout.Instance)) 10128ParentInternal.LayoutEngine.InitLayout(this, specified);
System\Windows\Forms\Controls\Buttons\Button.cs (2)
65if (ParentInternal.LayoutEngine == DefaultLayout.Instance) 67ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
101if (ParentInternal.LayoutEngine == DefaultLayout.Instance) 103ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 605Size prefSize = LayoutEngine.GetPreferredSize(this, proposedSize - totalPadding);
System\Windows\Forms\Form.cs (2)
553if (toLayout.LayoutEngine == DefaultLayout.Instance) 555toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Layout\CommonProperties.cs (1)
500if (element.Container is Control { LayoutEngine: DefaultLayout })
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
687return LayoutEngine.GetPreferredSize(this, proposedSize - totalPadding) + totalPadding;
System\Windows\Forms\Layout\TableLayout.cs (2)
695if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance) 823if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.LayoutEngine == DefaultLayout.Instance)
System\Windows\Forms\Panels\Panel.cs (3)
84if (ParentInternal.LayoutEngine == DefaultLayout.Instance) 86ParentInternal.LayoutEngine.InitLayout(this, BoundsSpecified.Size); 158return LayoutEngine.GetPreferredSize(this, proposedSize - totalPadding) + totalPadding;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
383bool defaultLayoutEngine = (LayoutEngine == DefaultLayout.Instance);
System\Windows\Forms\UserControl.cs (2)
88if (toLayout.LayoutEngine == DefaultLayout.Instance) 90toLayout.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
System.Windows.Forms.Tests (147)
System\Windows\Forms\AxHostTests.cs (6)
85Assert.NotNull(control.LayoutEngine); 86Assert.Same(control.LayoutEngine, control.LayoutEngine); 179Assert.NotNull(control.LayoutEngine); 180Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ButtonBaseTests.cs (3)
83Assert.NotNull(control.LayoutEngine); 84Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ButtonTests.cs (4)
86Assert.NotNull(control.LayoutEngine); 87Assert.Same(control.LayoutEngine, control.LayoutEngine); 394_layoutEngine = base.LayoutEngine;
System\Windows\Forms\CheckBoxTests.cs (3)
87Assert.NotNull(control.LayoutEngine); 88Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ComboBoxTests.cs (3)
95Assert.NotNull(control.LayoutEngine); 96Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ContainerControlTests.cs (3)
91Assert.NotNull(control.LayoutEngine); 92Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3588_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\ControlTests.cs (15)
69Assert.NotNull(control.LayoutEngine); 70Assert.Same(control.LayoutEngine, control.LayoutEngine); 158Assert.NotNull(control.LayoutEngine); 159Assert.Same(control.LayoutEngine, control.LayoutEngine); 254Assert.NotNull(control.LayoutEngine); 255Assert.Same(control.LayoutEngine, control.LayoutEngine); 350Assert.NotNull(control.LayoutEngine); 351Assert.Same(control.LayoutEngine, control.LayoutEngine); 446Assert.NotNull(control.LayoutEngine); 447Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ControlTests.Methods.cs (1)
2997_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
84Assert.NotNull(control.LayoutEngine); 85Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\DateTimePickerTests.cs (3)
86Assert.NotNull(control.LayoutEngine); 87Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
111Assert.NotNull(control.LayoutEngine); 112Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (3)
90Assert.NotNull(control.LayoutEngine); 91Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\DomainUpDownTests.cs (3)
114_sub.LayoutEngine.Should().NotBeNull(); 115_sub.LayoutEngine.Should().BeSameAs(_sub.LayoutEngine);
System\Windows\Forms\FormTests.cs (3)
113Assert.NotNull(control.LayoutEngine); 114Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\GroupBoxTests.cs (4)
73Assert.NotNull(control.LayoutEngine); 74Assert.Same(control.LayoutEngine, control.LayoutEngine); 364_layoutEngine = base.LayoutEngine;
System\Windows\Forms\HScrollBarTests.cs (3)
81Assert.NotNull(control.LayoutEngine); 82Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\LabelTests.cs (3)
78Assert.NotNull(control.LayoutEngine); 79Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ListBoxTests.cs (3)
89Assert.NotNull(control.LayoutEngine); 90Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ListControlTests.cs (3)
79Assert.NotNull(control.LayoutEngine); 80Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ListViewTests.cs (3)
104Assert.NotNull(control.LayoutEngine); 105Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\MdiClientTests.cs (3)
57Assert.NotNull(control.LayoutEngine); 58Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\MonthCalendarTests.cs (3)
90Assert.NotNull(control.LayoutEngine); 91Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\PanelTests.cs (4)
85Assert.NotNull(control.LayoutEngine); 86Assert.Same(control.LayoutEngine, control.LayoutEngine); 352_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\PictureBoxTests.cs (3)
80Assert.NotNull(control.LayoutEngine); 81Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ProgressBarTests.cs (3)
70Assert.NotNull(control.LayoutEngine); 71Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\PropertyGridTests.cs (3)
119Assert.NotNull(control.LayoutEngine); 120Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\RadioButtonTests.cs (3)
86Assert.NotNull(control.LayoutEngine); 87Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\RichTextBoxTests.cs (3)
91Assert.NotNull(control.LayoutEngine); 92Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ScrollableControlTests.cs (3)
84Assert.NotNull(control.LayoutEngine); 85Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ScrollBarTests.cs (3)
71Assert.NotNull(control.LayoutEngine); 72Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\SplitterPanelTests.cs (3)
75Assert.NotNull(control.LayoutEngine); 76Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\SplitterTests.cs (3)
71Assert.NotNull(control.LayoutEngine); 72Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\TabControlTests.cs (3)
76Assert.NotNull(control.LayoutEngine); 77Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\TabPageTests.cs (6)
90Assert.NotNull(control.LayoutEngine); 91Assert.Same(control.LayoutEngine, control.LayoutEngine); 199Assert.NotNull(control.LayoutEngine); 200Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
87Assert.NotNull(control.LayoutEngine); 88Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\TreeViewTests.cs (3)
83Assert.NotNull(control.LayoutEngine); 84Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\UpDownBaseTests.cs (3)
99Assert.NotNull(control.LayoutEngine); 100Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\UserControlTests.cs (4)
91Assert.NotNull(control.LayoutEngine); 92Assert.Same(control.LayoutEngine, control.LayoutEngine); 467_layoutEngine = new Control().LayoutEngine;
System\Windows\Forms\VScrollBarTests.cs (3)
80Assert.NotNull(control.LayoutEngine); 81Assert.Same(control.LayoutEngine, control.LayoutEngine);
System\Windows\Forms\WebBrowserTests.cs (3)
68Assert.NotNull(control.LayoutEngine); 69Assert.Same(control.LayoutEngine, control.LayoutEngine);
TextBoxTests.cs (3)
78Assert.NotNull(control.LayoutEngine); 79Assert.Same(control.LayoutEngine, control.LayoutEngine);
TrackBarTests.cs (3)
73Assert.NotNull(control.LayoutEngine); 74Assert.Same(control.LayoutEngine, control.LayoutEngine);