381 references to new
Accessibility_Core_App (1)
DataBindingExample.cs (1)
77TreeNode node = new()
System.Windows.Forms (3)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
119: this() 128: this() 165: this()
System.Windows.Forms.Tests (377)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (5)
38TreeNode node = new(); 145TreeNode node = new(); 324TreeNode node = new(); 372TreeNode node = new(); 584control.Nodes[0] = new TreeNode();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
137new TreeNode(),
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (3)
14yield return new object[] { new TreeNode(), new Rectangle(1, 2, 3, 4), TreeNodeStates.Checked }; 15yield return new object[] { new TreeNode(), new Rectangle(-1, -2, -3, -4), TreeNodeStates.Checked }; 38DrawTreeNodeEventArgs e = new(graphics, new TreeNode(), new Rectangle(1, 2, 3, 4), TreeNodeStates.Checked)
System\Windows\Forms\NodeLabelEditEventArgsTests.cs (4)
12yield return new object[] { new TreeNode() }; 28yield return new object[] { new TreeNode(), "" }; 29yield return new object[] { new TreeNode(), "label" }; 47NodeLabelEditEventArgs e = new(new TreeNode())
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (16)
19TreeNode treeNode = new(); 39TreeNode treeNode = new(); 60TreeNode treeNode = new(); 82TreeNode treeNode = new() { ToolTipText = toolTipText }; 101TreeNode treeNode = new(); 316TreeNode treeNode = new(); 339TreeNode treeNode = new(); 372TreeNode treeNode = new(); 408TreeNode treeNode = new(); 422TreeNode rootNode1 = new(); 423TreeNode rootNode2 = new(); 424TreeNode rootNode3 = new(); 426TreeNode subNode1 = new(); 427TreeNode subNode2 = new(); 428TreeNode subNode3 = new(); 430TreeNode subSubNode = new();
System\Windows\Forms\TreeNodeCollectionTests.cs (18)
76Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new TreeNode()); 142TreeNode child1 = new() 146TreeNode child2 = new() 150TreeNode child3 = new() 155TreeNode grandchild1 = new() 159TreeNode grandchild2 = new() 163TreeNode grandchild3 = new() 196TreeNode child1 = new() 200TreeNode child2 = new() 204TreeNode child3 = new() 222TreeNode child1 = new() 227TreeNode child2 = new() 232TreeNode child3 = new() 269TreeNode child1 = new() 274TreeNode child2 = new() 279TreeNode child3 = new() 346TreeNode child1 = new() { Name = "name1" }; 347TreeNode child2 = new() { Name = "name2" };
System\Windows\Forms\TreeNodeMouseClickEventArgsTests.cs (2)
14yield return new object[] { new TreeNode(), (MouseButtons)1, 0, 0, 0 }; 15yield return new object[] { new TreeNode(), (MouseButtons)3, -1, -1, -1 };
System\Windows\Forms\TreeNodeMouseHoverEventArgsTests.cs (1)
12yield return new object[] { new TreeNode() };
System\Windows\Forms\TreeNodeTests.cs (291)
16TreeNode node = new(); 265TreeNode node = new() 281TreeNode node = new(); 305TreeNode node = new(); 342TreeNode node = new() 360TreeNode node = new() 388TreeNode node = new() 421TreeNode node = new(); 437TreeNode node = new(); 453TreeNode node = new(); 468TreeNode node = new(); 520TreeNode node = new(); 531TreeNode node = new(); 543TreeNode node = new(); 556TreeNode node = new() 582TreeNode node = new(); 611TreeNode node = new(); 656TreeNode node = new(); 682TreeNode node = new(); 706TreeNode node = new() 722TreeNode node = new(); 746TreeNode node = new(); 783TreeNode node = new() 801TreeNode node = new() 829TreeNode node = new() 862TreeNode node = new(); 878TreeNode node = new(); 893TreeNode node = new(); 903TreeNode node = new(); 922TreeNode node = new() 949TreeNode node = new(); 973TreeNode node = new() 1011TreeNode node = new() 1051TreeNode node = new(); 1089TreeNode node = new(); 1128TreeNode node = new(); 1148TreeNode node = new(); 1204TreeNode node = new(); 1231TreeNode node = new(); 1262TreeNode node = new(); 1284TreeNode node = new(); 1303TreeNode node = new(); 1311TreeNode node = new(); 1324TreeNode node = new() 1343TreeNode node = new() 1362TreeNode node = new(); 1386TreeNode node = new(); 1419TreeNode node = new(); 1439TreeNode node = new(); 1477TreeNode node = new(); 1507TreeNode node = new(); 1539TreeNode node = new(); 1558TreeNode node = new(); 1577TreeNode node = new(); 1590TreeNode node = new(); 1601TreeNode node = new(); 1621TreeNode parent = new(); 1622TreeNode node1 = new(); 1623TreeNode node2 = new(); 1624TreeNode node3 = new(); 1625TreeNode node4 = new(); 1640TreeNode parent = new(); 1641TreeNode node1 = new(); 1642TreeNode node2 = new(); 1643TreeNode node3 = new(); 1644TreeNode node4 = new(); 1662TreeNode parent = new(); 1663TreeNode node1 = new(); 1664TreeNode node2 = new(); 1665TreeNode node3 = new(); 1666TreeNode node4 = new(); 1694TreeNode node = new(); 1705TreeNode node = new(); 1726TreeNode node = new(); 1739TreeNode node = new(); 1750TreeNode node = new(); 1779TreeNode node = new(); 1798TreeNode node = new(); 1810TreeNode node = new(); 1823TreeNode node = new(); 1834TreeNode node = new(); 1862TreeNode node = new(); 1880TreeNode node = new(); 1892TreeNode node = new(); 1905TreeNode node = new(); 1916TreeNode node = new(); 1964TreeNode node = new(); 1975TreeNode node = new(); 1987TreeNode node = new(); 2000TreeNode node = new(); 2011TreeNode node = new(); 2031TreeNode parent = new(); 2032TreeNode node1 = new(); 2033TreeNode node2 = new(); 2034TreeNode node3 = new(); 2035TreeNode node4 = new(); 2050TreeNode parent = new(); 2051TreeNode node1 = new(); 2052TreeNode node2 = new(); 2053TreeNode node3 = new(); 2054TreeNode node4 = new(); 2072TreeNode parent = new(); 2073TreeNode node1 = new(); 2074TreeNode node2 = new(); 2075TreeNode node3 = new(); 2076TreeNode node4 = new(); 2104TreeNode node = new() 2119TreeNode node = new(); 2130TreeNode node = new(); 2150TreeNode parent = new(); 2151TreeNode node1 = new(); 2152TreeNode node2 = new(); 2153TreeNode node3 = new(); 2154TreeNode node4 = new(); 2169TreeNode parent = new(); 2170TreeNode node1 = new(); 2171TreeNode node2 = new(); 2172TreeNode node3 = new(); 2173TreeNode node4 = new(); 2191TreeNode parent = new(); 2192TreeNode node1 = new(); 2193TreeNode node2 = new(); 2194TreeNode node3 = new(); 2195TreeNode node4 = new(); 2223TreeNode node = new(); 2234TreeNode node = new(); 2255TreeNode node = new(); 2267TreeNode parent = new(); 2268TreeNode node1 = new(); 2269TreeNode node2 = new(); 2270TreeNode node3 = new(); 2271TreeNode node4 = new(); 2286TreeNode parent = new(); 2287TreeNode node1 = new(); 2288TreeNode node2 = new(); 2289TreeNode node3 = new(); 2290TreeNode node4 = new(); 2308TreeNode parent = new(); 2309TreeNode node1 = new(); 2310TreeNode node2 = new(); 2311TreeNode node3 = new(); 2312TreeNode node4 = new(); 2340TreeNode node = new(); 2370TreeNode node = new(); 2408TreeNode node = new(); 2419TreeNode node = new(); 2439TreeNode parent = new(); 2440TreeNode node1 = new(); 2441TreeNode node2 = new(); 2442TreeNode node3 = new(); 2443TreeNode node4 = new(); 2458TreeNode parent = new(); 2459TreeNode node1 = new(); 2460TreeNode node2 = new(); 2461TreeNode node3 = new(); 2462TreeNode node4 = new(); 2480TreeNode parent = new(); 2481TreeNode node1 = new(); 2482TreeNode node2 = new(); 2483TreeNode node3 = new(); 2484TreeNode node4 = new(); 2512TreeNode node = new(); 2523TreeNode node = new(); 2543TreeNode parent = new(); 2544TreeNode node1 = new(); 2545TreeNode node2 = new(); 2546TreeNode node3 = new(); 2547TreeNode node4 = new(); 2562TreeNode parent = new(); 2563TreeNode node1 = new(); 2564TreeNode node2 = new(); 2565TreeNode node3 = new(); 2566TreeNode node4 = new(); 2584TreeNode parent = new(); 2585TreeNode node1 = new(); 2586TreeNode node2 = new(); 2587TreeNode node3 = new(); 2588TreeNode node4 = new(); 2616TreeNode node = new(); 2627TreeNode node = new(); 2648TreeNode node = new(); 2660TreeNode parent = new(); 2661TreeNode node1 = new(); 2662TreeNode node2 = new(); 2663TreeNode node3 = new(); 2664TreeNode node4 = new(); 2679TreeNode parent = new(); 2680TreeNode node1 = new(); 2681TreeNode node2 = new(); 2682TreeNode node3 = new(); 2683TreeNode node4 = new(); 2701TreeNode parent = new(); 2702TreeNode node1 = new(); 2703TreeNode node2 = new(); 2704TreeNode node3 = new(); 2705TreeNode node4 = new(); 2733TreeNode node = new(); 2763TreeNode node = new(); 2801TreeNode node = new() 2817TreeNode node = new(); 2841TreeNode node = new(); 2872TreeNode node = new() 2891TreeNode node = new() 2919TreeNode node = new() 2955TreeNode node = new() 2993TreeNode node = new() 3033TreeNode node = new(); 3071TreeNode node = new(); 3110TreeNode node = new(); 3130TreeNode node = new(); 3186TreeNode node = new(); 3215TreeNode node = new(); 3246TreeNode node = new(); 3268TreeNode node = new(); 3287TreeNode node = new(); 3295TreeNode node = new(); 3308TreeNode node = new() 3327TreeNode node = new() 3346TreeNode node = new(); 3370TreeNode node = new(); 3403TreeNode node = new(); 3423TreeNode node = new(); 3461TreeNode node = new(); 3491TreeNode node = new(); 3523TreeNode node = new(); 3542TreeNode node = new(); 3561TreeNode node = new(); 3578TreeNode node = new() 3620TreeNode node = new() 3675TreeNode node = new(); 3714TreeNode node = new(); 3762TreeNode node = new(); 3797TreeNode node = new(); 3850TreeNode node = new(); 3880TreeNode node = new(); 3912TreeNode node = new(); 3942TreeNode node = new(); 3978TreeNode node = new(); 3986TreeNode node = new(); 4004TreeNode node = new() 4035TreeNode node = new() 4079TreeNode node = new(); 4110TreeNode node = new(); 4152TreeNode node = new(); 4175TreeNode node = new(); 4213TreeNode node = new(); 4251TreeNode node = new(); 4291TreeNode node = new(); 4314TreeNode node = new(); 4333TreeNode node = new(); 4346TreeNode node = new() 4361TreeNode node = new() 4390TreeNode node = new(); 4411TreeNode node = new(); 4447TreeNode node = new(); 4472TreeNode node = new(); 4491TreeNode node = new() 4506TreeNode node = new(); 4517TreeNode node = new(); 4537TreeNode parent = new(); 4538TreeNode node1 = new(); 4539TreeNode node2 = new(); 4540TreeNode node3 = new(); 4541TreeNode node4 = new(); 4556TreeNode parent = new(); 4557TreeNode node1 = new(); 4558TreeNode node2 = new(); 4559TreeNode node3 = new(); 4560TreeNode node4 = new(); 4578TreeNode parent = new(); 4579TreeNode node1 = new(); 4580TreeNode node2 = new(); 4581TreeNode node3 = new(); 4582TreeNode node4 = new(); 4609TreeNode rootNode = new(); 4610TreeNode subNodeLevel1 = new(); 4611TreeNode subNodeLevel2 = new(); 4612TreeNode subNodeLevel3 = new(); 4627TreeNode treeNode = new(); 4628TreeNode treeSubNode = new(); 4663TreeNode treeNode = new() 4694TreeNode treeNode = new(); 4717TreeNode treeNode = new() 4739TreeNode treeNode = new(); 4755TreeNode treeNode = new(); 4764TreeNode treeNode = new(); 4773TreeNode node = new(); 4828TreeNode node = new(); 4831TreeNode child = new(); 4832child.Nodes.Add(new TreeNode()); 4845TreeNode node = new();
System\Windows\Forms\TreeViewCancelEventArgsTests.cs (1)
12yield return new object[] { new TreeNode(), true, TreeViewAction.ByKeyboard };
System\Windows\Forms\TreeViewEventArgsTests.cs (2)
12yield return new object[] { new TreeNode() }; 27yield return new object[] { new TreeNode(), TreeViewAction.ByKeyboard };
System\Windows\Forms\TreeViewHitTestInfoTests.cs (2)
13yield return new object[] { new TreeNode(), hitLocation }; 17yield return new object[] { new TreeNode(), 0 };
System\Windows\Forms\TreeViewTests.cs (31)
4742TreeNode node = new(); 5418yield return new object[] { new TreeViewEventArgs(new TreeNode()) }; 5419yield return new object[] { new TreeViewEventArgs(new TreeNode(), TreeViewAction.ByMouse) }; 5503yield return new object[] { new NodeLabelEditEventArgs(new TreeNode()) }; 5504yield return new object[] { new NodeLabelEditEventArgs(new TreeNode(), "label") }; 5563yield return new object[] { new TreeViewCancelEventArgs(new TreeNode(), true, TreeViewAction.ByKeyboard) }; 5670yield return new object[] { new DrawTreeNodeEventArgs(graphics, new TreeNode(), new Rectangle(1, 2, 3, 4), TreeNodeStates.Checked) }; 5782TreeNode node = new(); 6028TreeNode node = new(); 6109TreeNode node = new(); 6223TreeNode node = new(); 6418yield return new object[] { new TreeNodeMouseClickEventArgs(new TreeNode(), MouseButtons.Right, 1, 2, 3) }; 6473yield return new object[] { new TreeNodeMouseHoverEventArgs(new TreeNode()) }; 6655TreeNode treeNode = new(); 6669TreeNode treeNode1 = new(); 6670TreeNode treeNode2 = new(); 6671TreeNode treeNode3 = new(); 6688TreeNode treeNode = new(); 6689TreeNode treeSubNodeLevel1 = new(); 6690TreeNode treeSubNodeLevel2 = new(); 6709TreeNode treeNode = new(); 6710TreeNode treeSubNodeLevel1 = new(); 6711TreeNode treeSubNodeLevel2 = new(); 6730TreeNode treeNode = new(); 6748TreeNode treeNode = new(); 6749TreeNode treeSubNodeLevel1 = new(); 6750TreeNode treeSubNodeLevel2 = new(); 6774TreeNode treeNode = new(); 6788TreeNode treeNode = new(); 6789TreeNode treeSubNodeLevel1 = new(); 6790TreeNode treeSubNodeLevel2 = new();