10 overrides of LayoutEngine
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1277
public override LayoutEngine
LayoutEngine
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
169
public override LayoutEngine
LayoutEngine
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
23
public override LayoutEngine
LayoutEngine
=> FlowLayout.Instance;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
32
public override LayoutEngine
LayoutEngine
=> TableLayout.Instance;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ButtonTests.cs (1)
404
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3598
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\ControlTests.Methods.cs (1)
2965
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\GroupBoxTests.cs (1)
374
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\PanelTests.cs (1)
362
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\UserControlTests.cs (1)
477
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
173 references to LayoutEngine
System.Windows.Forms (26)
System\Windows\Forms\Control.cs (9)
621
if (value && parent.
LayoutEngine
== DefaultLayout.Instance)
623
parent.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
4226
ParentInternal?.
LayoutEngine
.InitLayout(this, BoundsSpecified.All);
5763
LayoutEngine
.InitLayout(this, BoundsSpecified.All);
7680
bool parentRequiresLayout =
LayoutEngine
.Layout(this, levent);
8380
LayoutEngine
.ProcessSuspendedLayoutEventArgs(this, args);
9447
LayoutEngine
.InitLayout(child, BoundsSpecified.All);
9777
&& (parent.
LayoutEngine
== DefaultLayout.Instance))
10126
ParentInternal.
LayoutEngine
.InitLayout(this, specified);
System\Windows\Forms\Controls\Buttons\Button.cs (2)
65
if (ParentInternal.
LayoutEngine
== DefaultLayout.Instance)
67
ParentInternal.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
101
if (ParentInternal.
LayoutEngine
== DefaultLayout.Instance)
103
ParentInternal.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
605
Size prefSize =
LayoutEngine
.GetPreferredSize(this, proposedSize - totalPadding);
System\Windows\Forms\Form.cs (2)
553
if (toLayout.
LayoutEngine
== DefaultLayout.Instance)
555
toLayout.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
System\Windows\Forms\Layout\CommonProperties.cs (1)
500
if (element.Container is Control {
LayoutEngine
: DefaultLayout })
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
686
return
LayoutEngine
.GetPreferredSize(this, proposedSize - totalPadding) + totalPadding;
System\Windows\Forms\Layout\TableLayout.cs (2)
695
if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.
LayoutEngine
== DefaultLayout.Instance)
823
if (containerInfo.Container is TableLayoutPanel tlp && tlp.ParentInternal is not null && tlp.ParentInternal.
LayoutEngine
== DefaultLayout.Instance)
System\Windows\Forms\Panels\Panel.cs (3)
84
if (ParentInternal.
LayoutEngine
== DefaultLayout.Instance)
86
ParentInternal.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
158
return
LayoutEngine
.GetPreferredSize(this, proposedSize - totalPadding) + totalPadding;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
377
bool defaultLayoutEngine = (
LayoutEngine
== DefaultLayout.Instance);
System\Windows\Forms\UserControl.cs (2)
88
if (toLayout.
LayoutEngine
== DefaultLayout.Instance)
90
toLayout.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
System.Windows.Forms.Tests (147)
System\Windows\Forms\AxHostTests.cs (6)
87
Assert.NotNull(control.
LayoutEngine
);
88
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
181
Assert.NotNull(control.
LayoutEngine
);
182
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ButtonBaseTests.cs (3)
85
Assert.NotNull(control.
LayoutEngine
);
86
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ButtonTests.cs (4)
88
Assert.NotNull(control.
LayoutEngine
);
89
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
396
_layoutEngine = base.
LayoutEngine
;
System\Windows\Forms\CheckBoxTests.cs (3)
89
Assert.NotNull(control.
LayoutEngine
);
90
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ComboBoxTests.cs (3)
97
Assert.NotNull(control.
LayoutEngine
);
98
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ContainerControlTests.cs (3)
93
Assert.NotNull(control.
LayoutEngine
);
94
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3590
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\ControlTests.cs (15)
71
Assert.NotNull(control.
LayoutEngine
);
72
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
160
Assert.NotNull(control.
LayoutEngine
);
161
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
256
Assert.NotNull(control.
LayoutEngine
);
257
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
352
Assert.NotNull(control.
LayoutEngine
);
353
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
448
Assert.NotNull(control.
LayoutEngine
);
449
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ControlTests.Methods.cs (1)
2957
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
86
Assert.NotNull(control.
LayoutEngine
);
87
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\DateTimePickerTests.cs (3)
88
Assert.NotNull(control.
LayoutEngine
);
89
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
113
Assert.NotNull(control.
LayoutEngine
);
114
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (3)
92
Assert.NotNull(control.
LayoutEngine
);
93
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\DomainUpDownTests.cs (3)
116
_sub.
LayoutEngine
.Should().NotBeNull();
117
_sub.
LayoutEngine
.Should().BeSameAs(_sub.
LayoutEngine
);
System\Windows\Forms\FormTests.cs (3)
115
Assert.NotNull(control.
LayoutEngine
);
116
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\GroupBoxTests.cs (4)
75
Assert.NotNull(control.
LayoutEngine
);
76
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
366
_layoutEngine = base.
LayoutEngine
;
System\Windows\Forms\HScrollBarTests.cs (3)
83
Assert.NotNull(control.
LayoutEngine
);
84
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\LabelTests.cs (3)
80
Assert.NotNull(control.
LayoutEngine
);
81
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListBoxTests.cs (3)
91
Assert.NotNull(control.
LayoutEngine
);
92
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListControlTests.cs (3)
81
Assert.NotNull(control.
LayoutEngine
);
82
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListViewTests.cs (3)
106
Assert.NotNull(control.
LayoutEngine
);
107
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\MdiClientTests.cs (3)
59
Assert.NotNull(control.
LayoutEngine
);
60
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\MonthCalendarTests.cs (3)
92
Assert.NotNull(control.
LayoutEngine
);
93
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\PanelTests.cs (4)
87
Assert.NotNull(control.
LayoutEngine
);
88
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
354
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\PictureBoxTests.cs (3)
82
Assert.NotNull(control.
LayoutEngine
);
83
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ProgressBarTests.cs (3)
72
Assert.NotNull(control.
LayoutEngine
);
73
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\PropertyGridTests.cs (3)
121
Assert.NotNull(control.
LayoutEngine
);
122
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\RadioButtonTests.cs (3)
88
Assert.NotNull(control.
LayoutEngine
);
89
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\RichTextBoxTests.cs (3)
93
Assert.NotNull(control.
LayoutEngine
);
94
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ScrollableControlTests.cs (3)
86
Assert.NotNull(control.
LayoutEngine
);
87
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ScrollBarTests.cs (3)
73
Assert.NotNull(control.
LayoutEngine
);
74
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\SplitterPanelTests.cs (3)
77
Assert.NotNull(control.
LayoutEngine
);
78
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\SplitterTests.cs (3)
73
Assert.NotNull(control.
LayoutEngine
);
74
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TabControlTests.cs (3)
78
Assert.NotNull(control.
LayoutEngine
);
79
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TabPageTests.cs (6)
92
Assert.NotNull(control.
LayoutEngine
);
93
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
201
Assert.NotNull(control.
LayoutEngine
);
202
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
89
Assert.NotNull(control.
LayoutEngine
);
90
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TreeViewTests.cs (3)
85
Assert.NotNull(control.
LayoutEngine
);
86
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\UpDownBaseTests.cs (3)
101
Assert.NotNull(control.
LayoutEngine
);
102
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\UserControlTests.cs (4)
93
Assert.NotNull(control.
LayoutEngine
);
94
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
469
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\VScrollBarTests.cs (3)
82
Assert.NotNull(control.
LayoutEngine
);
83
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\WebBrowserTests.cs (3)
70
Assert.NotNull(control.
LayoutEngine
);
71
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
TextBoxTests.cs (3)
80
Assert.NotNull(control.
LayoutEngine
);
81
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
TrackBarTests.cs (3)
75
Assert.NotNull(control.
LayoutEngine
);
76
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);