30 references to Layout
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
7641bool 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)
166bool parentNeedsLayout = LayoutEngine.Layout(this, e);
System.Windows.Forms.Tests (27)
System\Windows\Forms\ControlTests.Methods.cs (12)
4789.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 4804mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 4810mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 4859.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 4885mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 4893mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 5043.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 5058mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 5064mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Exactly(2)); 5124.Setup(e => e.Layout(control, It.IsAny<LayoutEventArgs>())) 5150mockLayoutEngine.Verify(e => e.Layout(control, It.IsAny<LayoutEventArgs>()), Times.Once()); 5158mockLayoutEngine.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>())) 1032mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount)); 1041mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount)); 1050mockLayoutEngine.Verify(e => e.Layout(parent, It.IsAny<LayoutEventArgs>()), Times.Exactly(expectedLayoutCallCount + 1));
System\Windows\Forms\Layout\FlowLayoutTests.cs (6)
83engine.Layout(control, null); 144engine.Layout(control, null); 205engine.Layout(control, null); 266engine.Layout(control, null); 281Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(control, "affectedProperty"))); 289Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\Layout\LayoutEngineTests.cs (3)
35Assert.False(engine.Layout(new ScrollableControl(), new LayoutEventArgs(new Component(), "affectedProperty"))); 42Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(new Component(), "affectedProperty"))); 49Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(new Component(), "affectedProperty")));
System\Windows\Forms\ToolStripItemTests.cs (2)
5843owner.LayoutEngine.Layout(owner, null); 5881parent.LayoutEngine.Layout(parent, null);