23 references to Add
System.Windows.Forms (1)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
26int IList.Add(object? style) => Add((TableLayoutStyle)style!);
System.Windows.Forms.Tests (22)
System\Windows\Forms\ColumnStyleTests.cs (2)
70control.LayoutSettings.RowStyles.Add(style); 100control.LayoutSettings.RowStyles.Add(style);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
260Assert.Throws<InvalidCastException>(() => settings.ColumnStyles.Add(new RowStyle())); 271settings.RowStyles.Add(new ColumnStyle());
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (2)
28Assert.Throws<InvalidCastException>(() => collection.Add(style)); 64Assert.Throws<InvalidCastException>(() => collection.Add(new RowStyle()));
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (2)
28collection.Add(style); 64collection.Add(new ColumnStyle());
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (12)
31collection.Add(style); 53Assert.Throws<ArgumentNullException>("style", () => collection.Add(null)); 73collection.Add(style); 74Assert.Throws<ArgumentException>("style", () => collection.Add(style)); 117collection.Add(style); 127collection.Add(new RowStyle()); 157collection.Add(new RowStyle()); 179collection.Add(style); 227collection.Add(style); 231collection.Add(style); 242collection.Add(style); 249collection.Add(style);
System\Windows\Forms\TableLayoutStyleTests.cs (2)
45control.LayoutSettings.RowStyles.Add(style); 77control.LayoutSettings.RowStyles.Add(style);