30 references to Layout
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
7768bool parentRequiresLayout = LayoutEngine.Layout(this, levent);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
378bool parentNeedsLayout = LayoutEngine.Layout(this, e);
System\Windows\Forms\Layout\ArrangedElement.cs (1)
164protected virtual void OnLayout(LayoutEventArgs e) => LayoutEngine.Layout(this, e);
System.Windows.Forms.Tests (27)
System\Windows\Forms\ControlTests.Methods.cs (12)
4771.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 4786mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 4792mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 4841.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 4867mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 4875mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 5025.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 5040mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 5046mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 5106.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 5132mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 5140mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2));
System\Windows\Forms\ControlTests.Properties.cs (4)
1011.Setup(e => e.Layout(parent, It.IsAny<LayoutEventArgs>())) 1036mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount)); 1045mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount)); 1054mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount + 1));
System\Windows\Forms\Layout\FlowLayoutTests.cs (6)
85engine.Layout(control, null); 146engine.Layout(control, null); 207engine.Layout(control, null); 268engine.Layout(control, null); 283Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(control, "affectedProperty"))); 291Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
37Assert.False(engine.Layout(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty"))); 44Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty"))); 51Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\ToolStripItemTests.cs (2)
5845owner.LayoutEngine.Layout(owner, null); 5883parent.LayoutEngine.Layout(parent, null);