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