171 references to Add
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (2)
282
Add
(header);
295
return
Add
(columnHeader);
System.Windows.Forms.Tests (168)
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (4)
46
listView.Columns.
Add
(columnHeader);
61
listView.Columns.
Add
(columnHeader);
75
listView.Columns.
Add
(columnHeader);
89
listView.Columns.
Add
(columnHeader);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (23)
266
listView.Columns.
Add
(new ColumnHeader());
347
listView.Columns.
Add
(new ColumnHeader());
389
listView.Columns.
Add
(new ColumnHeader());
450
listView.Columns.
Add
(new ColumnHeader());
512
listView.Columns.
Add
(new ColumnHeader());
583
listView.Columns.
Add
(new ColumnHeader());
638
listView.Columns.
Add
(new ColumnHeader());
718
listView.Columns.
Add
(new ColumnHeader());
800
listView.Columns.
Add
(new ColumnHeader());
852
listView.Columns.
Add
(new ColumnHeader());
1149
listView.Columns.
Add
(new ColumnHeader("Column 1") { Width = 70 });
1150
listView.Columns.
Add
(new ColumnHeader("Column 2") { Width = 70 });
1172
listView.Columns.
Add
(new ColumnHeader("Column 1") { Width = 70 });
1173
listView.Columns.
Add
(new ColumnHeader("Column 2") { Width = 70 });
1191
listView.Columns.
Add
(new ColumnHeader("Column 1") { Width = 70 });
1192
listView.Columns.
Add
(new ColumnHeader("Column 2") { Width = 70 });
1193
listView.Columns.
Add
(new ColumnHeader("Column 3") { Width = 70 });
1217
listView.Columns.
Add
(new ColumnHeader("Column 1") { Width = 70 });
1218
listView.Columns.
Add
(new ColumnHeader("Column 2") { Width = 70 });
1219
listView.Columns.
Add
(new ColumnHeader("Column 3") { Width = 70 });
1402
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 1" });
1403
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 2" });
1404
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 3" });
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (3)
587
listView.Columns.
Add
(new ColumnHeader());
1217
listView.Columns.
Add
(new ColumnHeader());
1429
listView.Columns.
Add
(new ColumnHeader());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (22)
1156
listView.Columns.
Add
(new ColumnHeader($"Column {i}"));
1213
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 1" });
1214
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 2" });
1215
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 3" });
1294
listView.Columns.
Add
(new ColumnHeader());
1353
listView.Columns.
Add
(new ColumnHeader());
1411
listView.Columns.
Add
(new ColumnHeader());
1458
listView.Columns.
Add
(new ColumnHeader());
1538
listView.Columns.
Add
(new ColumnHeader());
1539
listView.Columns.
Add
(new ColumnHeader());
1582
listView.Columns.
Add
(new ColumnHeader());
1583
listView.Columns.
Add
(new ColumnHeader());
1584
listView.Columns.
Add
(new ColumnHeader());
1596
listView.Columns.
Add
(new ColumnHeader());
1597
listView.Columns.
Add
(new ColumnHeader());
1598
listView.Columns.
Add
(new ColumnHeader());
1599
listView.Columns.
Add
(new ColumnHeader());
1623
listView.Columns.
Add
(new ColumnHeader());
1641
listView.Columns.
Add
(new ColumnHeader());
1642
listView.Columns.
Add
(new ColumnHeader());
1643
listView.Columns.
Add
(new ColumnHeader());
1977
listView.Columns.
Add
(new ColumnHeader());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
23
control.Columns.
Add
(new ColumnHeader());
141
listView.Columns.
Add
(new ColumnHeader());
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
24
list.Columns.
Add
(column);
50
list.Columns.
Add
(column);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
820
listView.Columns.
Add
(new ColumnHeader($"Column {i}"));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
161
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 1", Width = 100 });
System\Windows\Forms\ColumnHeaderCollectionTests.cs (35)
44
collection.
Add
(header);
118
collection.
Add
(header1);
119
collection.
Add
(header2);
130
collection.
Add
(header);
143
collection.
Add
(header);
144
Assert.Throws<ArgumentException>("ch", () => collection.
Add
(header));
155
otherCollection.
Add
(header);
156
Assert.Throws<ArgumentException>("ch", () => collection.
Add
(header));
318
Assert.Throws<ArgumentNullException>("ch", () => collection.
Add
((ColumnHeader)null));
338
collection.
Add
(header);
435
collection.
Add
(header);
457
collection.
Add
(header);
483
collection.
Add
(header);
508
collection.
Add
(header);
541
collection.
Add
(header);
575
collection.
Add
(header1);
576
collection.
Add
(header2);
622
collection.
Add
(header);
656
collection.
Add
(header1);
657
collection.
Add
(header2);
707
collection.
Add
(new ColumnHeader());
874
collection.
Add
(header);
936
collection.
Add
(header);
937
collection.
Add
(new ColumnHeader());
938
collection.
Add
(new ColumnHeader());
939
collection.
Add
(new ColumnHeader());
971
collection.
Add
(header);
972
collection.
Add
(new ColumnHeader());
973
collection.
Add
(new ColumnHeader());
974
collection.
Add
(new ColumnHeader());
1010
collection.
Add
(header);
1011
collection.
Add
(new ColumnHeader());
1012
collection.
Add
(new ColumnHeader());
1013
collection.
Add
(new ColumnHeader());
1080
collection.
Add
(header);
System\Windows\Forms\ColumnHeaderTests.cs (54)
90
listView.Columns.
Add
(header);
134
listView.Columns.
Add
(header1);
135
listView.Columns.
Add
(header2);
136
listView.Columns.
Add
(header3);
160
listView.Columns.
Add
(header1);
161
listView.Columns.
Add
(header2);
162
listView.Columns.
Add
(header3);
214
listView.Columns.
Add
(header1);
215
listView.Columns.
Add
(header2);
216
listView.Columns.
Add
(header3);
232
listView.Columns.
Add
(header);
325
listView.Columns.
Add
(header);
351
listView.Columns.
Add
(header);
382
listView.Columns.
Add
(header);
404
listView.Columns.
Add
(header);
439
listView.Columns.
Add
(header);
468
listView.Columns.
Add
(header);
494
listView.Columns.
Add
(header);
544
listView.Columns.
Add
(header);
568
listView.Columns.
Add
(header);
601
listView.Columns.
Add
(header);
621
listView.Columns.
Add
(header);
659
listView.Columns.
Add
(header);
690
listView.Columns.
Add
(header);
708
listView.Columns.
Add
(header);
720
listView.Columns.
Add
(header);
733
listView.Columns.
Add
(header);
742
listView.Columns.
Add
(header);
751
listView.Columns.
Add
(header);
794
listView.Columns.
Add
(header);
812
listView.Columns.
Add
(header);
971
listView.Columns.
Add
(header);
987
listView.Columns.
Add
(header);
1004
listView.Columns.
Add
(header);
1035
listView.Columns.
Add
(header1);
1036
listView.Columns.
Add
(header2);
1132
listView.Columns.
Add
(header1);
1133
listView.Columns.
Add
(header2);
1157
listView.Columns.
Add
(header1);
1158
listView.Columns.
Add
(header2);
1195
listView.Columns.
Add
(header1);
1196
listView.Columns.
Add
(header2);
1221
listView.Columns.
Add
(header);
1231
listView.Columns.
Add
(header);
1255
listView.Columns.
Add
(header);
1303
listView.Columns.
Add
(header);
1321
listView.Columns.
Add
(header);
1358
listView.Columns.
Add
(header);
1376
listView.Columns.
Add
(header);
1402
listView.Columns.
Add
(header);
1420
listView.Columns.
Add
(header);
1509
listView.Columns.
Add
(source);
1581
listView.Columns.
Add
(header);
1636
listView.Columns.
Add
(header);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (14)
146
listView.Columns.
Add
(new ColumnHeader() { Width = 50 });
166
listView.Columns.
Add
(new ColumnHeader() { Width = columnWidth });
411
listView.Columns.
Add
(new ColumnHeader());
430
listView.Columns.
Add
(new ColumnHeader());
451
listView.Columns.
Add
(new ColumnHeader());
471
listView.Columns.
Add
(new ColumnHeader());
492
listView.Columns.
Add
(new ColumnHeader());
514
listView.Columns.
Add
(new ColumnHeader());
535
listView.Columns.
Add
(new ColumnHeader());
555
listView.Columns.
Add
(new ColumnHeader());
575
listView.Columns.
Add
(new ColumnHeader());
592
listView.Columns.
Add
(new ColumnHeader());
609
listView.Columns.
Add
(new ColumnHeader());
627
listView.Columns.
Add
(new ColumnHeader());
System\Windows\Forms\ListViewTests.cs (7)
5147
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 1", Width = 100 });
5148
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 2", Width = 100 });
5149
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 3", Width = 100 });
5224
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 1", Width = 100 });
5225
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 2", Width = 100 });
5226
listView.Columns.
Add
(new ColumnHeader() { Text = "Column 3", Width = 100 });
6194
listView.Columns.
Add
(new ColumnHeader() { Name = "Column 1" });
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
553
listView.Columns.
Add
(new ColumnHeader() { Text = $"ColumnHeader{i}" });