34 references to Add
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
366
return
Add
(node.ToString())._index;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
159
newNode = _treeView1.Nodes.
Add
(baseNodeName + NextNode++.ToString(CultureInfo.InvariantCulture));
164
newNode = parent.Nodes.
Add
(baseNodeName + NextNode++.ToString(CultureInfo.InvariantCulture));
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (5)
476
control.Nodes.
Add
("Node1");
477
control.Nodes.
Add
("Node2");
478
control.Nodes.
Add
("Node3");
479
control.Nodes.
Add
("Node4");
508
node.Nodes.
Add
("ChildNode");
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (2)
156
control.Nodes.
Add
("Node 1");
178
control.Nodes.
Add
("Item1");
System\Windows\Forms\TreeNodeCollectionTests.cs (8)
16
TreeNode treeNode = collection.
Add
(text);
64
collection.
Add
("text");
75
collection.
Add
("text");
105
collection.
Add
("Node 0");
106
collection.
Add
("Node 1");
115
anotherTreeView.Nodes.
Add
("Node 0");
119
collection.
Add
("Node 1");
130
collection.
Add
("Node 1");
System\Windows\Forms\TreeViewTests.cs (15)
6894
treeView.Nodes.
Add
("Test");
6923
treeView.Nodes.
Add
("Test");
6960
treeView.Nodes.
Add
("Test");
6962
treeNode.Nodes.
Add
("Test 1");
7036
treeView.Nodes.
Add
("Test");
7064
treeView.Nodes.
Add
("Test");
7092
treeView.Nodes.
Add
("Test");
7094
treeNode.Nodes.
Add
("Test 1");
7117
treeView.Nodes.
Add
("Root 1");
7118
treeView.Nodes[0].Nodes.
Add
("Child 1");
7119
treeView.Nodes[0].Nodes.
Add
("Child 2");
7121
treeView.Nodes.
Add
("Root 2");
7122
treeView.Nodes[1].Nodes.
Add
("Child 3");
7123
treeView.Nodes[1].Nodes.
Add
("Child 4");
7562
treeView.Nodes.
Add
($"Node{i}");
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
54
TreeNode? node = treeView.Nodes.
Add
("root");