60 references to LayoutEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (1)
8323PerformLayout(new LayoutEventArgs(affectedControl, affectedProperty));
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
663OnLayout(new LayoutEventArgs(this, PropertyNames.Rows));
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\ByteViewerTests.cs (15)
309yield return new object[] { new LayoutEventArgs(null, null) }; 310yield return new object[] { new LayoutEventArgs(new Control(), null) }; 311yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 312yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 313yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 314yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 315yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 316yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 317yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 318yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 319yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 320yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 321yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 322yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 323yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") };
System.Windows.Forms.Tests (41)
System\Windows\Forms\Layout\FlowLayoutTests.cs (2)
281Assert.Throws<NotSupportedException>(() => engine.Layout("container", new LayoutEventArgs(control, "affectedProperty"))); 289Assert.Throws<ArgumentNullException>("container", () => engine.Layout(null, new LayoutEventArgs(control, "affectedProperty")));
System\Windows\Forms\LayoutEventArgsTests.cs (1)
39LayoutEventArgs e = new(affectedControl, affectedProperty);
System\Windows\Forms\ScrollableControlTests.cs (4)
1391yield return new object[] { true, new LayoutEventArgs(null, null), 1, null }; 1392yield return new object[] { true, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 2, affectedControl }; 1395yield return new object[] { false, new LayoutEventArgs(null, null), 1, null }; 1396yield return new object[] { false, new LayoutEventArgs(affectedControl = new Control(), "affectedProperty"), 1, affectedControl };
System\Windows\Forms\StatusStripTests.cs (3)
1131yield return new object[] { layoutStyle, dock, new LayoutEventArgs(null, null) }; 1132yield return new object[] { layoutStyle, dock, new LayoutEventArgs(new Control(), "AffectedProperty") }; 1169LayoutEventArgs eventArgs = new(null, null);
System\Windows\Forms\TableLayoutPanelTests.cs (15)
1319yield return new object[] { new LayoutEventArgs(null, null) }; 1320yield return new object[] { new LayoutEventArgs(new Control(), null) }; 1321yield return new object[] { new LayoutEventArgs(new Control(), string.Empty) }; 1322yield return new object[] { new LayoutEventArgs(new Control(), "ChildIndex") }; 1323yield return new object[] { new LayoutEventArgs(new Control(), "Visible") }; 1324yield return new object[] { new LayoutEventArgs(new Control(), "Items") }; 1325yield return new object[] { new LayoutEventArgs(new Control(), "Rows") }; 1326yield return new object[] { new LayoutEventArgs(new Control(), "Columns") }; 1327yield return new object[] { new LayoutEventArgs(new Control(), "RowStyles") }; 1328yield return new object[] { new LayoutEventArgs(new Control(), "ColumnStyles") }; 1329yield return new object[] { new LayoutEventArgs(new Control(), "TableIndex") }; 1330yield return new object[] { new LayoutEventArgs(new Control(), "GrowStyle") }; 1331yield return new object[] { new LayoutEventArgs(new Control(), "CellBorderStyle") }; 1332yield return new object[] { new LayoutEventArgs(new Control(), "LayoutSettings") }; 1333yield return new object[] { new LayoutEventArgs(new Control(), "NoSuchProperty") };
System\Windows\Forms\ToolStripDropDownTests.cs (14)
4135yield return new object[] { true, new LayoutEventArgs(null, null), 2 }; 4136yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2 }; 4139yield return new object[] { false, new LayoutEventArgs(null, null), 1 }; 4140yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1 }; 4185yield return new object[] { autoSize, new LayoutEventArgs(null, null) }; 4186yield return new object[] { autoSize, new LayoutEventArgs(new Control(), "affectedProperty") }; 4328yield return new object[] { true, new LayoutEventArgs(null, null), 2, 3 }; 4329yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4332yield return new object[] { false, new LayoutEventArgs(null, null), 1, 1 }; 4333yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 }; 4493yield return new object[] { true, new LayoutEventArgs(null, null), 2, 3 }; 4494yield return new object[] { true, new LayoutEventArgs(new Control(), "affectedProperty"), 2, 3 }; 4497yield return new object[] { false, new LayoutEventArgs(null, null), 1, 1 }; 4498yield return new object[] { false, new LayoutEventArgs(new Control(), "affectedProperty"), 1, 1 };
System\Windows\Forms\UpDownBaseTests.cs (2)
1963yield return new object[] { borderStyle, rightToLeft, upDownAlign, new LayoutEventArgs(null, null) }; 1964yield return new object[] { borderStyle, rightToLeft, upDownAlign, new LayoutEventArgs(new Control(), "affectedProperty") };
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
144new(null, null), 145new(new Control(), "affectedProperty")