91 references to new
Accessibility_Core_App (4)
CommonControl2.Designer.cs (4)
31System.Windows.Forms.TreeNode treeNode1 = new("Node10WinformsTeam"); 32System.Windows.Forms.TreeNode treeNode2 = new("Node11"); 36System.Windows.Forms.TreeNode treeNode4 = new("Node20"); 42System.Windows.Forms.TreeNode treeNode7 = new("Node4");
System.Windows.Forms (12)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
137: this(text) 146: this(text)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (10)
130TreeNode tn = new(text); 142TreeNode tn = new(text) 155TreeNode tn = new(text) 169TreeNode tn = new(text) 196TreeNode tn = new(text) 494TreeNode tn = new(text); 504TreeNode tn = new(text) 517TreeNode tn = new(text) 531TreeNode tn = new(text) 558TreeNode tn = new(text)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\ObjectSelectorEditor.SelectorNode.cs (1)
17public SelectorNode(string? label, object? value) : base(label)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
2116public BindingPickerNode(DesignBindingPicker picker, string? nodeName) : base(nodeName) 2121public BindingPickerNode(DesignBindingPicker? picker, string nodeName, BindingImage index) : base(nodeName)
System.Windows.Forms.Tests (71)
SerializableTypesTests.cs (2)
345var children = new TreeNode[] { new("node2"), new("node3") };
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (1)
598TreeNode node = new("Node");
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (4)
230TreeNode node = new("First node."); 244TreeNode node = new("First node."); 259TreeNode node = new("First node."); 277control.Nodes.AddRange(nodeNames.Select(name => new TreeNode(name)).ToArray());
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
158TreeNode node = new("node1");
System\Windows\Forms\TreeNodeCollectionTests.cs (4)
84TreeNode node = new("Node 0"); 94TreeNode node = new("Node 0"); 131collection[0] = new TreeNode("New node 1"); 513TreeNode node = new(nodeName);
System\Windows\Forms\TreeNodeConverterTests.cs (1)
28TreeNode node = new("Test");
System\Windows\Forms\TreeNodeTests.cs (6)
56TreeNode node = new(text); 4642TreeNode treeNode = new("Node 1"); 4677TreeNode node1 = new(nodeName1); 4678TreeNode node2 = new(nodeName2); 4723treeNode.Nodes.Add(new TreeNode(childNode1)); 4724treeNode.Nodes.Add(new TreeNode(childNode2));
System\Windows\Forms\TreeViewTests.cs (52)
4794TreeNode node1 = new("Some Long Text"); 4820TreeNode node1 = new("Some Long Text"); 4862TreeNode node1 = new("Some Long Text"); 4891TreeNode node1 = new("Some Long Text"); 4933TreeNode node1 = new("Some Long Text"); 4948TreeNode node1 = new("Some Long Text"); 4990TreeNode node1 = new("Some Long Text"); 5019TreeNode node1 = new("Some Long Text"); 5122TreeNode node1 = new("Some Long Text"); 5152TreeNode node1 = new("Some Long Text"); 5202TreeNode node1 = new("Some Long Text"); 5235TreeNode node1 = new("Some Long Text"); 5285TreeNode node1 = new("Some Long Text"); 5304TreeNode node1 = new("Some Long Text"); 5354TreeNode node1 = new("Some Long Text"); 5387TreeNode node1 = new("Some Long Text"); 7145TreeNode parent = new("Parent"); 7148TreeNode firstNode = new(firstNodeText); 7150TreeNode secondNode = new(secondNodeText); 7168TreeNode parent = new("Parent"); 7171TreeNode firstNode = new(firstNodeText); 7173TreeNode secondNode = new(secondNodeText); 7189TreeNode parent = new("Parent"); 7192TreeNode treeNode1 = new("Node1"); 7193TreeNode treeNode2 = new("Node0"); 7194TreeNode treeNode3 = new("Node2"); 7224TreeNode parent = new("Parent"); 7227TreeNode lastSubNode1 = new("Node1"); 7228TreeNode lastSubNode2 = new("Node2"); 7229TreeNode lastSubNode3 = new("Node3"); 7231TreeNode fifthSubNode2 = new("SubNode1-1-1-2"); 7233TreeNode fourthSubNode2 = new("SubNode1-1-2"); 7235TreeNode thirdSubNode2 = new("SubNode1-2"); 7237TreeNode secondSubNode2 = new("SubNode2"); 7273TreeNode treeNode1 = new("Node1"); 7274TreeNode treeNode2 = new("Node2"); 7275TreeNode treeNode3 = new("Node3"); 7276TreeNode treeNode4 = new("Node3"); 7314TreeNode treeNode1 = new("a0"); 7315TreeNode treeNode2 = new("b0"); 7316TreeNode treeNode3 = new("c0"); 7317TreeNode treeNode4 = new("a1"); 7318TreeNode treeNode5 = new("b1"); 7319TreeNode treeNode6 = new("c1"); 7320TreeNode treeNode7 = new("a2"); 7321TreeNode rootNode = new("Root", [new TreeNode("child")]); 7374TreeNode node = nodeName is null ? null : new TreeNode(nodeName); 7415TreeNode rootNode = new(root); 7420TreeNode childNode = new(child); 7425TreeNode grandChildNode = new(grandChild); 7528treeView.Nodes.Add(new TreeNode("Node1")); 7529treeView.Nodes.Add(new TreeNode("Node2"));
WinFormsControlsTest (1)
ScrollableControls.Designer.cs (1)
36TreeNode treeNode1 = new TreeNode("Node8");