30 references to Layout
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
7682
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)
4798
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
4813
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
4819
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
4868
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
4894
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
4902
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
5052
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
5067
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
5073
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
5133
.Setup(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()))
5159
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Once());
5167
mockLayoutEngine.Verify(e => e.
Layout
(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
System\Windows\Forms\ControlTests.Properties.cs (4)
1007
.Setup(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()))
1032
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount));
1041
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount));
1050
mockLayoutEngine.Verify(e => e.
Layout
(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount + 1));
System\Windows\Forms\Layout\FlowLayoutTests.cs (6)
83
engine.
Layout
(control, null);
144
engine.
Layout
(control, null);
205
engine.
Layout
(control, null);
266
engine.
Layout
(control, null);
281
Assert.Throws<NotSupportedException>(() => engine.
Layout
("container", new LayoutEventArgs(control, "affectedProperty")));
289
Assert.Throws<ArgumentNullException>("container", () => engine.
Layout
(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
35
Assert.False(engine.
Layout
(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty")));
42
Assert.Throws<NotSupportedException>(() => engine.
Layout
("container", new LayoutEventArgs(new Component(), "affectedProperty")));
49
Assert.Throws<ArgumentNullException>("container", () => engine.
Layout
(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\ToolStripItemTests.cs (2)
5843
owner.LayoutEngine.
Layout
(owner, null);
5881
parent.LayoutEngine.
Layout
(parent, null);