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)
72control.LayoutSettings.RowStyles.Add(style); 102control.LayoutSettings.RowStyles.Add(style);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
262Assert.Throws<InvalidCastException>(() => settings.ColumnStyles.Add(new RowStyle())); 273settings.RowStyles.Add(new ColumnStyle());
System\Windows\Forms\TableLayoutColumnStyleCollectionTests.cs (2)
30Assert.Throws<InvalidCastException>(() => collection.Add(style)); 66Assert.Throws<InvalidCastException>(() => collection.Add(new RowStyle()));
System\Windows\Forms\TableLayoutRowStyleCollectionTests.cs (2)
30collection.Add(style); 66collection.Add(new ColumnStyle());
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (12)
33collection.Add(style); 55Assert.Throws<ArgumentNullException>("style", () => collection.Add(null)); 75collection.Add(style); 76Assert.Throws<ArgumentException>("style", () => collection.Add(style)); 119collection.Add(style); 129collection.Add(new RowStyle()); 159collection.Add(new RowStyle()); 181collection.Add(style); 229collection.Add(style); 233collection.Add(style); 244collection.Add(style); 251collection.Add(style);
System\Windows\Forms\TableLayoutStyleTests.cs (2)
47control.LayoutSettings.RowStyles.Add(style); 79control.LayoutSettings.RowStyles.Add(style);