206 references to new
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (2)
46
private ListViewGroup(SerializationInfo info, StreamingContext context) :
this
()
54
public ListViewGroup(string? key, string? headerText) :
this
()
System.Windows.Forms.Tests (201)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (3)
89
ListViewGroup group =
new
();
119
ListViewGroup group =
new
();
143
ListViewGroup group =
new
();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (9)
326
ListViewGroup group =
new
();
706
ListViewGroup lvgroup1 =
new
()
715
ListViewGroup lvgroup2 =
new
()
740
ListViewGroup listViewGroup =
new
()
1158
ListViewGroup listViewGroup =
new
();
1219
listView.Groups.Add(new
ListViewGroup
());
1351
ListViewGroup group =
new
();
1367
ListViewGroup group =
new
();
1381
ListViewGroup group =
new
();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (7)
75
ListViewGroup listviewGroup =
new
();
1314
listView.Groups.Add(new
ListViewGroup
());
1348
listView.Groups.Add(new
ListViewGroup
());
1406
listView.Groups.Add(new
ListViewGroup
());
1480
listView.Groups.Add(new
ListViewGroup
());
1934
ListViewGroup lvgroup1 =
new
()
1940
ListViewGroup lvgroup2 =
new
()
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
134
new
ListViewGroup
(),
System\Windows\Forms\ListViewGroupCollectionTests.cs (96)
28
ListViewGroup group =
new
();
40
collection.Add(new
ListViewGroup
());
49
collection.Add(new
ListViewGroup
());
51
ListViewGroup group =
new
();
64
collection.Add(new
ListViewGroup
());
66
ListViewGroup group =
new
();
79
collection.Add(new
ListViewGroup
());
81
ListViewGroup group =
new
();
100
collection.Add(new
ListViewGroup
());
102
ListViewGroup group =
new
();
121
ListViewGroup group1 =
new
();
122
ListViewGroup group2 =
new
();
135
collection.Add(new
ListViewGroup
());
140
ListViewGroup group =
new
();
155
ListViewGroup oldGroup =
new
();
160
ListViewGroup group =
new
();
174
collection.Add(new
ListViewGroup
());
185
collection.Add(new
ListViewGroup
());
186
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new
ListViewGroup
());
195
ListViewGroup group =
new
();
207
collection.Add(new
ListViewGroup
());
216
collection.Add(new
ListViewGroup
());
218
ListViewGroup group =
new
();
229
ListViewGroup group1 =
new
();
230
ListViewGroup group2 =
new
();
245
collection.Add(new
ListViewGroup
());
246
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new
ListViewGroup
());
266
ListViewGroup group1 =
new
();
267
ListViewGroup group2 =
new
()
287
ListViewGroup group1 =
new
();
288
ListViewGroup group2 =
new
()
313
ListViewGroup group1 =
new
();
314
ListViewGroup group2 =
new
()
321
ListViewGroup group3 =
new
();
336
ListViewGroup group1 =
new
();
337
ListViewGroup group2 =
new
()
344
ListViewGroup group3 =
new
();
355
collection["text"] = new
ListViewGroup
();
372
ListViewGroup group1 =
new
();
378
ListViewGroup group2 =
new
();
391
ListViewGroup group1 =
new
();
397
ListViewGroup group2 =
new
();
410
ListViewGroup group =
new
();
429
ListViewGroup group1 =
new
();
438
ListViewGroup group2 =
new
();
446
ListViewGroup group1 =
new
();
447
ListViewGroup group2 =
new
();
464
ListViewGroup group =
new
();
491
ListViewGroup group =
new
();
519
ListViewGroup group =
new
();
540
ListViewGroup group1 =
new
();
541
ListViewGroup group2 =
new
();
558
ListViewGroup group1 =
new
();
559
ListViewGroup group2 =
new
();
587
ListViewGroup group =
new
();
597
ListViewGroup group =
new
();
617
ListViewGroup group =
new
();
645
ListViewGroup group =
new
();
649
Assert.False(collection.Contains(new
ListViewGroup
()));
659
Assert.False(collection.Contains(new
ListViewGroup
()));
668
ListViewGroup group =
new
();
672
Assert.False(collection.Contains(new
ListViewGroup
()));
683
Assert.False(collection.Contains(new
ListViewGroup
()));
693
ListViewGroup group =
new
();
697
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
707
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
716
ListViewGroup group =
new
();
720
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
731
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
741
ListViewGroup group =
new
();
742
collection.Add(new
ListViewGroup
());
756
ListViewGroup group =
new
();
757
collection.Add(new
ListViewGroup
());
771
ListViewGroup group =
new
();
790
ListViewGroup group =
new
();
805
collection.Add(new
ListViewGroup
());
810
ListViewGroup group =
new
();
830
ListViewGroup group1 =
new
();
831
ListViewGroup group2 =
new
();
847
ListViewGroup group =
new
();
863
collection.Add(new
ListViewGroup
());
874
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new
ListViewGroup
()));
882
ListViewGroup group =
new
();
883
collection.Add(new
ListViewGroup
());
909
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new
ListViewGroup
()));
917
ListViewGroup group =
new
();
941
ListViewGroup group =
new
();
963
ListViewGroup group =
new
();
983
ListViewGroup group =
new
();
995
ListViewGroup group =
new
();
997
collection.Add(new
ListViewGroup
());
998
collection.Add(new
ListViewGroup
());
999
collection.Add(new
ListViewGroup
());
1034
ListViewGroup group =
new
();
1064
Assert.Throws<InvalidOperationException>(() => listView.Groups.Add(new
ListViewGroup
()));
1131
Assert.Throws<InvalidOperationException>(() => listView.Groups.Insert(0, new
ListViewGroup
()));
System\Windows\Forms\ListViewGroupConverterTests.cs (3)
174
new
ListViewGroup
(),
237
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
ListViewGroup
(), destinationType));
251
ListViewGroup item =
new
();
System\Windows\Forms\ListViewGroupTests.cs (56)
17
ListViewGroup group =
new
();
120
ListViewGroup group =
new
() { CollapsedState = collapsedState };
129
ListViewGroup group =
new
();
138
ListViewGroup group =
new
()
156
ListViewGroup group =
new
();
175
ListViewGroup group =
new
();
222
ListViewGroup group =
new
();
250
ListViewGroup group =
new
();
258
ListViewGroup group =
new
()
276
ListViewGroup group =
new
()
294
ListViewGroup group =
new
();
316
ListViewGroup group =
new
();
362
ListViewGroup group =
new
();
390
ListViewGroup group =
new
()
408
ListViewGroup group =
new
()
426
ListViewGroup group =
new
();
448
ListViewGroup group =
new
();
499
ListViewGroup group =
new
();
530
ListViewGroup group =
new
()
548
ListViewGroup group =
new
();
570
ListViewGroup group =
new
();
612
ListViewGroup group =
new
();
652
ListViewGroup group =
new
()
672
ListViewGroup group =
new
()
696
ListViewGroup group =
new
()
751
ListViewGroup group1 =
new
()
782
ListViewGroup group =
new
();
791
ListViewGroup group =
new
()
809
ListViewGroup group =
new
();
831
ListViewGroup group =
new
();
873
ListViewGroup group =
new
();
904
ListViewGroup group =
new
()
924
ListViewGroup group =
new
()
948
ListViewGroup group =
new
()
1003
ListViewGroup group1 =
new
()
1034
ListViewGroup group =
new
();
1049
ListViewGroup group =
new
()
1066
ListViewGroup group =
new
()
1089
ListViewGroup group =
new
()
1129
ListViewGroup group =
new
();
1170
ListViewGroup group =
new
();
1178
ListViewGroup group =
new
()
1195
ListViewGroup group =
new
()
1213
ListViewGroup group =
new
();
1235
ListViewGroup group =
new
();
1278
ListViewGroup group =
new
();
1307
ListViewGroup group =
new
()
1321
yield return new object[] { new
ListViewGroup
() };
1324
ListViewGroup groupWithEmptyItems =
new
();
1328
ListViewGroup groupWithItems =
new
();
1366
ListViewGroup group =
new
();
1382
ListViewGroup group =
new
();
1400
ListViewGroup group =
new
();
1419
ListViewGroup group =
new
();
1431
ListViewGroup listViewGroup =
new
();
1446
ListViewGroup listViewGroup =
new
();
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
125
ListViewGroup listViewGroup =
new
();
System\Windows\Forms\ListViewItemConverterTests.cs (1)
50
ListViewGroup group =
new
();
System\Windows\Forms\ListViewItemTests.cs (22)
46
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new
ListViewGroup
(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty };
47
yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, new
ListViewGroup
(), "imageKey", Color.Blue, Color.Red, "text" };
84
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new
ListViewGroup
(), SystemColors.WindowText, SystemColors.Window, string.Empty };
85
yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, new
ListViewGroup
(), Color.Blue, Color.Red, "text" };
198
yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, "imageKey", new
ListViewGroup
(), "imageKey", "text" };
235
yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, -1, new
ListViewGroup
(), "text" };
272
yield return new object[] { new string[] { null }, string.Empty, new
ListViewGroup
(), string.Empty, string.Empty };
273
yield return new object[] { new string[] { "text" }, "imageKey", new
ListViewGroup
(), "imageKey", "text" };
310
yield return new object[] { new string[] { null }, 1, new
ListViewGroup
(), string.Empty };
311
yield return new object[] { new string[] { "text" }, 2, new
ListViewGroup
(), "text" };
347
yield return new object[] { string.Empty, string.Empty, new
ListViewGroup
(), string.Empty, string.Empty };
348
yield return new object[] { "text", "imageKey", new
ListViewGroup
(), "text", "imageKey" };
385
yield return new object[] { string.Empty, 0, new
ListViewGroup
(), string.Empty };
386
yield return new object[] { "text", 1, new
ListViewGroup
(), "text" };
498
yield return new object[] { new string[] { null }, new
ListViewGroup
(), string.Empty };
499
yield return new object[] { new string[] { "text" }, new
ListViewGroup
(), "text" };
612
yield return new object[] { "text", new
ListViewGroup
(), "text" };
725
yield return new object[] { new
ListViewGroup
() };
833
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey", new
ListViewGroup
()));
834
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 0, new
ListViewGroup
()));
843
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey", new
ListViewGroup
()));
844
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1, new
ListViewGroup
()));
System\Windows\Forms\ListViewTests.cs (2)
1920
ListViewGroup group1 =
new
();
1921
ListViewGroup group2 =
new
()
WinFormsControlsTest (3)
ListViewTest.cs (3)
146
ListViewGroup lvgroup1 =
new
()
159
ListViewGroup lvgroup2 =
new
()
186
ListViewGroup lvgroup1 =
new
()