30 references to Layout
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
7680
bool parentRequiresLayout = LayoutEngine.
Layout
(this, levent);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
378
bool parentNeedsLayout = LayoutEngine.
Layout
(this, e);
System\Windows\Forms\Layout\ArrangedElement.cs (1)
164
protected virtual void OnLayout(LayoutEventArgs e) => LayoutEngine.
Layout
(this, e);
System.Windows.Forms.Tests (27)
System\Windows\Forms\ControlTests.Methods.cs (12)
4758
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
4773
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
4779
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
4828
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
4854
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
4862
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
5012
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
5027
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
5033
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
5093
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
5119
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
5127
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
System\Windows\Forms\ControlTests.Properties.cs (4)
1009
.Setup(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()))
1034
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount));
1043
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount));
1052
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount + 1));
System\Windows\Forms\Layout\FlowLayoutTests.cs (6)
85
engine.
Layout
(control, null);
146
engine.
Layout
(control, null);
207
engine.
Layout
(control, null);
268
engine.
Layout
(control, null);
283
Assert.Throws<NotSupportedException>(() => engine.
Layout
("container", new LayoutEventArgs(control, "affectedProperty")));
291
Assert.Throws<ArgumentNullException>("container", () => engine.
Layout
(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
37
Assert.False(engine.
Layout
(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty")));
44
Assert.Throws<NotSupportedException>(() => engine.
Layout
("container", new LayoutEventArgs(new Component(), "affectedProperty")));
51
Assert.Throws<ArgumentNullException>("container", () => engine.
Layout
(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\ToolStripItemTests.cs (2)
5845
owner.LayoutEngine.
Layout
(owner, null);
5883
parent.LayoutEngine.
Layout
(parent, null);