10 overrides of LayoutEngine
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1278
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)
402
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3596
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\ControlTests.Methods.cs (1)
3005
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\GroupBoxTests.cs (1)
372
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\PanelTests.cs (1)
360
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
System\Windows\Forms\UserControlTests.cs (1)
475
public override LayoutEngine
LayoutEngine
=> _layoutEngine;
173 references to LayoutEngine
System.Windows.Forms (26)
System\Windows\Forms\Control.cs (9)
623
if (value && parent.
LayoutEngine
== DefaultLayout.Instance)
625
parent.
LayoutEngine
.InitLayout(this, BoundsSpecified.Size);
4228
ParentInternal?.
LayoutEngine
.InitLayout(this, BoundsSpecified.All);
5765
LayoutEngine
.InitLayout(this, BoundsSpecified.All);
7682
bool parentRequiresLayout =
LayoutEngine
.Layout(this, levent);
8382
LayoutEngine
.ProcessSuspendedLayoutEventArgs(this, args);
9449
LayoutEngine
.InitLayout(child, BoundsSpecified.All);
9779
&& (parent.
LayoutEngine
== DefaultLayout.Instance))
10128
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)
687
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)
383
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)
85
Assert.NotNull(control.
LayoutEngine
);
86
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
179
Assert.NotNull(control.
LayoutEngine
);
180
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ButtonBaseTests.cs (3)
83
Assert.NotNull(control.
LayoutEngine
);
84
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ButtonTests.cs (4)
86
Assert.NotNull(control.
LayoutEngine
);
87
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
394
_layoutEngine = base.
LayoutEngine
;
System\Windows\Forms\CheckBoxTests.cs (3)
87
Assert.NotNull(control.
LayoutEngine
);
88
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ComboBoxTests.cs (3)
95
Assert.NotNull(control.
LayoutEngine
);
96
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ContainerControlTests.cs (3)
91
Assert.NotNull(control.
LayoutEngine
);
92
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ControlTests.ControlCollection.cs (1)
3588
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\ControlTests.cs (15)
69
Assert.NotNull(control.
LayoutEngine
);
70
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
158
Assert.NotNull(control.
LayoutEngine
);
159
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
254
Assert.NotNull(control.
LayoutEngine
);
255
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
350
Assert.NotNull(control.
LayoutEngine
);
351
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
446
Assert.NotNull(control.
LayoutEngine
);
447
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ControlTests.Methods.cs (1)
2997
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
84
Assert.NotNull(control.
LayoutEngine
);
85
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\DateTimePickerTests.cs (3)
86
Assert.NotNull(control.
LayoutEngine
);
87
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
111
Assert.NotNull(control.
LayoutEngine
);
112
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (3)
90
Assert.NotNull(control.
LayoutEngine
);
91
Assert.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)
113
Assert.NotNull(control.
LayoutEngine
);
114
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\GroupBoxTests.cs (4)
73
Assert.NotNull(control.
LayoutEngine
);
74
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
364
_layoutEngine = base.
LayoutEngine
;
System\Windows\Forms\HScrollBarTests.cs (3)
81
Assert.NotNull(control.
LayoutEngine
);
82
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\LabelTests.cs (3)
78
Assert.NotNull(control.
LayoutEngine
);
79
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListBoxTests.cs (3)
89
Assert.NotNull(control.
LayoutEngine
);
90
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListControlTests.cs (3)
79
Assert.NotNull(control.
LayoutEngine
);
80
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ListViewTests.cs (3)
104
Assert.NotNull(control.
LayoutEngine
);
105
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\MdiClientTests.cs (3)
57
Assert.NotNull(control.
LayoutEngine
);
58
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\MonthCalendarTests.cs (3)
90
Assert.NotNull(control.
LayoutEngine
);
91
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\PanelTests.cs (4)
85
Assert.NotNull(control.
LayoutEngine
);
86
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
352
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\PictureBoxTests.cs (3)
80
Assert.NotNull(control.
LayoutEngine
);
81
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ProgressBarTests.cs (3)
70
Assert.NotNull(control.
LayoutEngine
);
71
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\PropertyGridTests.cs (3)
119
Assert.NotNull(control.
LayoutEngine
);
120
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\RadioButtonTests.cs (3)
86
Assert.NotNull(control.
LayoutEngine
);
87
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\RichTextBoxTests.cs (3)
91
Assert.NotNull(control.
LayoutEngine
);
92
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ScrollableControlTests.cs (3)
84
Assert.NotNull(control.
LayoutEngine
);
85
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ScrollBarTests.cs (3)
71
Assert.NotNull(control.
LayoutEngine
);
72
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\SplitterPanelTests.cs (3)
75
Assert.NotNull(control.
LayoutEngine
);
76
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\SplitterTests.cs (3)
71
Assert.NotNull(control.
LayoutEngine
);
72
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TabControlTests.cs (3)
76
Assert.NotNull(control.
LayoutEngine
);
77
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TabPageTests.cs (6)
90
Assert.NotNull(control.
LayoutEngine
);
91
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
199
Assert.NotNull(control.
LayoutEngine
);
200
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
87
Assert.NotNull(control.
LayoutEngine
);
88
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\TreeViewTests.cs (3)
83
Assert.NotNull(control.
LayoutEngine
);
84
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\UpDownBaseTests.cs (3)
99
Assert.NotNull(control.
LayoutEngine
);
100
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\UserControlTests.cs (4)
91
Assert.NotNull(control.
LayoutEngine
);
92
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
467
_layoutEngine = new Control().
LayoutEngine
;
System\Windows\Forms\VScrollBarTests.cs (3)
80
Assert.NotNull(control.
LayoutEngine
);
81
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
System\Windows\Forms\WebBrowserTests.cs (3)
68
Assert.NotNull(control.
LayoutEngine
);
69
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
TextBoxTests.cs (3)
78
Assert.NotNull(control.
LayoutEngine
);
79
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);
TrackBarTests.cs (3)
73
Assert.NotNull(control.
LayoutEngine
);
74
Assert.Same(control.
LayoutEngine
, control.
LayoutEngine
);