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