77 references to new
System.Windows.Forms.Design (3)
System\Drawing\Design\ToolboxItem.cs (1)
44
public ToolboxItem(Type? toolType) :
this
()
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (1)
14
private static readonly ToolboxItem s_invalidToolboxItem =
new
();
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
23
public CfCodeToolboxItem(object? serializationData) :
base
()
System.Windows.Forms.Design.Tests (73)
System\Drawing\Design\ToolboxItemCollectionTests.cs (7)
11
ToolboxItem item =
new
();
28
ToolboxItem item =
new
();
46
ToolboxItem item =
new
();
48
Assert.False(collection.Contains(new
ToolboxItem
{ DisplayName = "Other" }));
55
ToolboxItem item =
new
();
57
Assert.Equal(-1, collection.IndexOf(new
ToolboxItem
{ DisplayName = "Other" }));
64
ToolboxItem item =
new
();
System\Drawing\Design\ToolboxItemTests.cs (66)
18
ToolboxItem item =
new
();
50
ToolboxItem item =
new
()
94
ToolboxItem item =
new
();
108
ToolboxItem item =
new
()
124
ToolboxItem item =
new
();
132
ToolboxItem item =
new
()
148
ToolboxItem item =
new
();
164
ToolboxItem item =
new
()
200
ToolboxItem item =
new
();
208
ToolboxItem item =
new
()
224
ToolboxItem item =
new
();
232
ToolboxItem item =
new
()
248
ToolboxItem item =
new
();
264
ToolboxItem item =
new
()
280
ToolboxItem item =
new
();
288
ToolboxItem item =
new
()
304
ToolboxItem item =
new
();
311
ToolboxItem item =
new
();
319
ToolboxItem item =
new
()
335
ToolboxItem item =
new
();
343
ToolboxItem item =
new
()
359
ToolboxItem item =
new
();
366
ToolboxItem item =
new
()
422
ToolboxItem item =
new
()
480
ToolboxItem item =
new
()
546
ToolboxItem item =
new
()
672
ToolboxItem item =
new
()
981
ToolboxItem item =
new
();
983
yield return new object[] { item, new
ToolboxItem
(), true };
989
new
ToolboxItem
1002
new
ToolboxItem
{ TypeName = "TypeName" },
1003
new
ToolboxItem
{ TypeName = "TypeName" },
1008
new
ToolboxItem
{ TypeName = "TypeName" },
1009
new
ToolboxItem
{ TypeName = "typename" },
1014
new
ToolboxItem
{ TypeName = "TypeName" },
1015
new
ToolboxItem
(),
1020
new
ToolboxItem
(),
1021
new
ToolboxItem
{ TypeName = "TypeName" },
1045
new
ToolboxItem
{ DisplayName = "DisplayName" },
1046
new
ToolboxItem
{ DisplayName = "DisplayName" },
1051
new
ToolboxItem
{ DisplayName = "DisplayName" },
1052
new
ToolboxItem
{ DisplayName = "displayname" },
1057
new
ToolboxItem
{ DisplayName = "DisplayName" },
1058
new
ToolboxItem
(),
1063
new
ToolboxItem
(),
1064
new
ToolboxItem
{ DisplayName = "DisplayName" },
1088
new
ToolboxItem
{ AssemblyName = new AssemblyName("Name") },
1089
new
ToolboxItem
{ AssemblyName = new AssemblyName("Name") },
1094
new
ToolboxItem
{ AssemblyName = new AssemblyName("Name") },
1095
new
ToolboxItem
{ AssemblyName = new AssemblyName("name") },
1100
new
ToolboxItem
(),
1101
new
ToolboxItem
{ AssemblyName = new AssemblyName("Name") },
1106
new
ToolboxItem
{ AssemblyName = new AssemblyName("Name") },
1107
new
ToolboxItem
(),
1111
yield return new object[] { new
ToolboxItem
(), new(), false };
1112
yield return new object[] { new
ToolboxItem
(), null, false };
1175
yield return new object[] { new
ToolboxItem
() };
1176
yield return new object[] { new
ToolboxItem
{ TypeName = "TypeName", DisplayName = "DisplayName" } };
1285
ToolboxItem item =
new
()
1341
ToolboxItem item =
new
()
1386
ToolboxItem item =
new
()
1415
ToolboxItem item =
new
()
1442
ToolboxItem item =
new
();
1450
ToolboxItem item =
new
();
1519
yield return new object[] { new
ToolboxItem
(), string.Empty };
1520
yield return new object[] { new
ToolboxItem
{ DisplayName = "DisplayName" }, "DisplayName" };
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
47
ToolboxItem toolboxItem =
new
()