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
();
610
ListViewGroup group =
new
();
651
ListViewGroup group =
new
()
671
ListViewGroup group =
new
()
695
ListViewGroup group =
new
()
750
ListViewGroup group1 =
new
()
781
ListViewGroup group =
new
();
790
ListViewGroup group =
new
()
808
ListViewGroup group =
new
();
830
ListViewGroup group =
new
();
870
ListViewGroup group =
new
();
901
ListViewGroup group =
new
()
921
ListViewGroup group =
new
()
945
ListViewGroup group =
new
()
1000
ListViewGroup group1 =
new
()
1031
ListViewGroup group =
new
();
1046
ListViewGroup group =
new
()
1063
ListViewGroup group =
new
()
1086
ListViewGroup group =
new
()
1126
ListViewGroup group =
new
();
1167
ListViewGroup group =
new
();
1175
ListViewGroup group =
new
()
1192
ListViewGroup group =
new
()
1210
ListViewGroup group =
new
();
1232
ListViewGroup group =
new
();
1275
ListViewGroup group =
new
();
1304
ListViewGroup group =
new
()
1318
yield return new object[] { new
ListViewGroup
() };
1321
ListViewGroup groupWithEmptyItems =
new
();
1325
ListViewGroup groupWithItems =
new
();
1363
ListViewGroup group =
new
();
1379
ListViewGroup group =
new
();
1397
ListViewGroup group =
new
();
1416
ListViewGroup group =
new
();
1428
ListViewGroup listViewGroup =
new
();
1443
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
()