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)
91
ListViewGroup group =
new
();
121
ListViewGroup group =
new
();
145
ListViewGroup group =
new
();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (9)
328
ListViewGroup group =
new
();
708
ListViewGroup lvgroup1 =
new
()
717
ListViewGroup lvgroup2 =
new
()
742
ListViewGroup listViewGroup =
new
()
1160
ListViewGroup listViewGroup =
new
();
1221
listView.Groups.Add(new
ListViewGroup
());
1353
ListViewGroup group =
new
();
1369
ListViewGroup group =
new
();
1383
ListViewGroup group =
new
();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (7)
77
ListViewGroup listviewGroup =
new
();
1316
listView.Groups.Add(new
ListViewGroup
());
1350
listView.Groups.Add(new
ListViewGroup
());
1408
listView.Groups.Add(new
ListViewGroup
());
1482
listView.Groups.Add(new
ListViewGroup
());
1936
ListViewGroup lvgroup1 =
new
()
1942
ListViewGroup lvgroup2 =
new
()
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
238
new
ListViewGroup
(),
System\Windows\Forms\ListViewGroupCollectionTests.cs (96)
30
ListViewGroup group =
new
();
42
collection.Add(new
ListViewGroup
());
51
collection.Add(new
ListViewGroup
());
53
ListViewGroup group =
new
();
66
collection.Add(new
ListViewGroup
());
68
ListViewGroup group =
new
();
81
collection.Add(new
ListViewGroup
());
83
ListViewGroup group =
new
();
102
collection.Add(new
ListViewGroup
());
104
ListViewGroup group =
new
();
123
ListViewGroup group1 =
new
();
124
ListViewGroup group2 =
new
();
137
collection.Add(new
ListViewGroup
());
142
ListViewGroup group =
new
();
157
ListViewGroup oldGroup =
new
();
162
ListViewGroup group =
new
();
176
collection.Add(new
ListViewGroup
());
187
collection.Add(new
ListViewGroup
());
188
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new
ListViewGroup
());
197
ListViewGroup group =
new
();
209
collection.Add(new
ListViewGroup
());
218
collection.Add(new
ListViewGroup
());
220
ListViewGroup group =
new
();
231
ListViewGroup group1 =
new
();
232
ListViewGroup group2 =
new
();
247
collection.Add(new
ListViewGroup
());
248
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new
ListViewGroup
());
268
ListViewGroup group1 =
new
();
269
ListViewGroup group2 =
new
()
289
ListViewGroup group1 =
new
();
290
ListViewGroup group2 =
new
()
315
ListViewGroup group1 =
new
();
316
ListViewGroup group2 =
new
()
323
ListViewGroup group3 =
new
();
338
ListViewGroup group1 =
new
();
339
ListViewGroup group2 =
new
()
346
ListViewGroup group3 =
new
();
357
collection["text"] = new
ListViewGroup
();
374
ListViewGroup group1 =
new
();
380
ListViewGroup group2 =
new
();
393
ListViewGroup group1 =
new
();
399
ListViewGroup group2 =
new
();
412
ListViewGroup group =
new
();
431
ListViewGroup group1 =
new
();
440
ListViewGroup group2 =
new
();
448
ListViewGroup group1 =
new
();
449
ListViewGroup group2 =
new
();
466
ListViewGroup group =
new
();
493
ListViewGroup group =
new
();
521
ListViewGroup group =
new
();
542
ListViewGroup group1 =
new
();
543
ListViewGroup group2 =
new
();
560
ListViewGroup group1 =
new
();
561
ListViewGroup group2 =
new
();
589
ListViewGroup group =
new
();
599
ListViewGroup group =
new
();
619
ListViewGroup group =
new
();
647
ListViewGroup group =
new
();
651
Assert.False(collection.Contains(new
ListViewGroup
()));
661
Assert.False(collection.Contains(new
ListViewGroup
()));
670
ListViewGroup group =
new
();
674
Assert.False(collection.Contains(new
ListViewGroup
()));
685
Assert.False(collection.Contains(new
ListViewGroup
()));
695
ListViewGroup group =
new
();
699
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
709
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
718
ListViewGroup group =
new
();
722
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
733
Assert.Equal(-1, collection.IndexOf(new
ListViewGroup
()));
743
ListViewGroup group =
new
();
744
collection.Add(new
ListViewGroup
());
758
ListViewGroup group =
new
();
759
collection.Add(new
ListViewGroup
());
773
ListViewGroup group =
new
();
792
ListViewGroup group =
new
();
807
collection.Add(new
ListViewGroup
());
812
ListViewGroup group =
new
();
832
ListViewGroup group1 =
new
();
833
ListViewGroup group2 =
new
();
849
ListViewGroup group =
new
();
865
collection.Add(new
ListViewGroup
());
876
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new
ListViewGroup
()));
884
ListViewGroup group =
new
();
885
collection.Add(new
ListViewGroup
());
911
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new
ListViewGroup
()));
919
ListViewGroup group =
new
();
943
ListViewGroup group =
new
();
965
ListViewGroup group =
new
();
985
ListViewGroup group =
new
();
997
ListViewGroup group =
new
();
999
collection.Add(new
ListViewGroup
());
1000
collection.Add(new
ListViewGroup
());
1001
collection.Add(new
ListViewGroup
());
1036
ListViewGroup group =
new
();
1066
Assert.Throws<InvalidOperationException>(() => listView.Groups.Add(new
ListViewGroup
()));
1133
Assert.Throws<InvalidOperationException>(() => listView.Groups.Insert(0, new
ListViewGroup
()));
System\Windows\Forms\ListViewGroupConverterTests.cs (3)
176
new
ListViewGroup
(),
239
Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new
ListViewGroup
(), destinationType));
253
ListViewGroup item =
new
();
System\Windows\Forms\ListViewGroupTests.cs (56)
19
ListViewGroup group =
new
();
122
ListViewGroup group =
new
() { CollapsedState = collapsedState };
131
ListViewGroup group =
new
();
140
ListViewGroup group =
new
()
158
ListViewGroup group =
new
();
177
ListViewGroup group =
new
();
224
ListViewGroup group =
new
();
252
ListViewGroup group =
new
();
260
ListViewGroup group =
new
()
278
ListViewGroup group =
new
()
296
ListViewGroup group =
new
();
318
ListViewGroup group =
new
();
364
ListViewGroup group =
new
();
392
ListViewGroup group =
new
()
410
ListViewGroup group =
new
()
428
ListViewGroup group =
new
();
450
ListViewGroup group =
new
();
501
ListViewGroup group =
new
();
532
ListViewGroup group =
new
()
550
ListViewGroup group =
new
();
572
ListViewGroup group =
new
();
614
ListViewGroup group =
new
();
654
ListViewGroup group =
new
()
674
ListViewGroup group =
new
()
698
ListViewGroup group =
new
()
753
ListViewGroup group1 =
new
()
784
ListViewGroup group =
new
();
793
ListViewGroup group =
new
()
811
ListViewGroup group =
new
();
833
ListViewGroup group =
new
();
875
ListViewGroup group =
new
();
906
ListViewGroup group =
new
()
926
ListViewGroup group =
new
()
950
ListViewGroup group =
new
()
1005
ListViewGroup group1 =
new
()
1036
ListViewGroup group =
new
();
1051
ListViewGroup group =
new
()
1068
ListViewGroup group =
new
()
1091
ListViewGroup group =
new
()
1131
ListViewGroup group =
new
();
1172
ListViewGroup group =
new
();
1180
ListViewGroup group =
new
()
1197
ListViewGroup group =
new
()
1215
ListViewGroup group =
new
();
1237
ListViewGroup group =
new
();
1280
ListViewGroup group =
new
();
1309
ListViewGroup group =
new
()
1323
yield return new object[] { new
ListViewGroup
() };
1326
ListViewGroup groupWithEmptyItems =
new
();
1330
ListViewGroup groupWithItems =
new
();
1368
ListViewGroup group =
new
();
1384
ListViewGroup group =
new
();
1402
ListViewGroup group =
new
();
1421
ListViewGroup group =
new
();
1433
ListViewGroup listViewGroup =
new
();
1448
ListViewGroup listViewGroup =
new
();
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
127
ListViewGroup listViewGroup =
new
();
System\Windows\Forms\ListViewItemConverterTests.cs (1)
52
ListViewGroup group =
new
();
System\Windows\Forms\ListViewItemTests.cs (22)
48
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new
ListViewGroup
(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty };
49
yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, new
ListViewGroup
(), "imageKey", Color.Blue, Color.Red, "text" };
86
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new
ListViewGroup
(), SystemColors.WindowText, SystemColors.Window, string.Empty };
87
yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, new
ListViewGroup
(), Color.Blue, Color.Red, "text" };
200
yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, "imageKey", new
ListViewGroup
(), "imageKey", "text" };
237
yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, -1, new
ListViewGroup
(), "text" };
274
yield return new object[] { new string[] { null }, string.Empty, new
ListViewGroup
(), string.Empty, string.Empty };
275
yield return new object[] { new string[] { "text" }, "imageKey", new
ListViewGroup
(), "imageKey", "text" };
312
yield return new object[] { new string[] { null }, 1, new
ListViewGroup
(), string.Empty };
313
yield return new object[] { new string[] { "text" }, 2, new
ListViewGroup
(), "text" };
349
yield return new object[] { string.Empty, string.Empty, new
ListViewGroup
(), string.Empty, string.Empty };
350
yield return new object[] { "text", "imageKey", new
ListViewGroup
(), "text", "imageKey" };
387
yield return new object[] { string.Empty, 0, new
ListViewGroup
(), string.Empty };
388
yield return new object[] { "text", 1, new
ListViewGroup
(), "text" };
500
yield return new object[] { new string[] { null }, new
ListViewGroup
(), string.Empty };
501
yield return new object[] { new string[] { "text" }, new
ListViewGroup
(), "text" };
614
yield return new object[] { "text", new
ListViewGroup
(), "text" };
727
yield return new object[] { new
ListViewGroup
() };
835
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey", new
ListViewGroup
()));
836
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 0, new
ListViewGroup
()));
845
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey", new
ListViewGroup
()));
846
Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1, new
ListViewGroup
()));
System\Windows\Forms\ListViewTests.cs (2)
1922
ListViewGroup group1 =
new
();
1923
ListViewGroup group2 =
new
()
WinFormsControlsTest (3)
ListViewTest.cs (3)
146
ListViewGroup lvgroup1 =
new
()
159
ListViewGroup lvgroup2 =
new
()
186
ListViewGroup lvgroup1 =
new
()