29 references to InitLayout
System.Windows.Forms (10)
System\Windows\Forms\Control.cs (5)
624
parent.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
4227
ParentInternal?.LayoutEngine.
InitLayout
(this, BoundsSpecified.All);
5724
LayoutEngine.
InitLayout
(this, BoundsSpecified.All);
9408
LayoutEngine.
InitLayout
(child, BoundsSpecified.All);
10095
ParentInternal.LayoutEngine.
InitLayout
(this, specified);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
67
ParentInternal.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
103
ParentInternal.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
System\Windows\Forms\Form.cs (1)
555
toLayout.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
System\Windows\Forms\Panels\Panel.cs (1)
86
ParentInternal.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
System\Windows\Forms\UserControl.cs (1)
90
toLayout.LayoutEngine.
InitLayout
(this, BoundsSpecified.Size);
System.Windows.Forms.Tests (19)
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
241
.Setup(e => e.
InitLayout
(control, BoundsSpecified.All))
256
mockLayoutEngine.Verify(e => e.
InitLayout
(control, BoundsSpecified.All), Times.Once());
268
mockLayoutEngine.Verify(e => e.
InitLayout
(control, BoundsSpecified.All), Times.Once());
System\Windows\Forms\ControlTests.Methods.cs (9)
2960
.Setup(e => e.
InitLayout
(control, BoundsSpecified.All))
2965
mockLayoutEngine.Verify(e => e.
InitLayout
(control, BoundsSpecified.All), Times.Once());
2970
mockLayoutEngine.Verify(e => e.
InitLayout
(control, BoundsSpecified.All), Times.Exactly(2));
6752
.Setup(e => e.
InitLayout
(child, BoundsSpecified.All))
6760
mockLayoutEngine.Verify(e => e.
InitLayout
(child, BoundsSpecified.All), Times.Exactly(expectedInitLayoutCallCount));
6766
mockLayoutEngine.Verify(e => e.
InitLayout
(child, BoundsSpecified.All), Times.Exactly(expectedInitLayoutCallCount * 2));
6800
.Setup(e => e.
InitLayout
(child, BoundsSpecified.All))
6806
mockLayoutEngine.Verify(e => e.
InitLayout
(child, BoundsSpecified.All), Times.Exactly(expectedInitLayoutCallCount));
6812
mockLayoutEngine.Verify(e => e.
InitLayout
(child, BoundsSpecified.All), Times.Exactly(expectedInitLayoutCallCount * 2));
System\Windows\Forms\ControlTests.Properties.cs (1)
1011
.Setup(e => e.
InitLayout
(control, BoundsSpecified.None));
System\Windows\Forms\Layout\FlowLayoutTests.cs (3)
16
engine.
InitLayout
(control, BoundsSpecified.All);
24
Assert.Throws<NotSupportedException>(() => engine.
InitLayout
("child", BoundsSpecified.All));
32
Assert.Throws<ArgumentNullException>("child", () => engine.
InitLayout
(null, BoundsSpecified.All));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
14
engine.
InitLayout
(new ScrollableControl(), BoundsSpecified.All);
21
Assert.Throws<NotSupportedException>(() => engine.
InitLayout
("child", BoundsSpecified.All));
28
Assert.Throws<ArgumentNullException>("child", () => engine.
InitLayout
(null, BoundsSpecified.All));