2 writes to
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
78this[index] = treeNode;
System.Windows.Forms.Tests (1)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
76Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new TreeNode());
29 references to
System.Windows.Forms (19)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
672return _parent.Nodes[_index + 1]; 830return _parent.Nodes[currentInd - 1];
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (13)
73get => this[index]; 104return this[index]; 260if (treeNodeCollectionToLookIn[i] is null) 265if (WindowsFormsUtils.SafeCompareStrings(treeNodeCollectionToLookIn[i].Name, key, ignoreCase: true)) 267foundTreeNodes.Add(treeNodeCollectionToLookIn[i]); 276if (treeNodeCollectionToLookIn[i] is null) 281if ((treeNodeCollectionToLookIn[i].Nodes is not null) && treeNodeCollectionToLookIn[i].Nodes.Count > 0) 284foundTreeNodes = FindInternal(key, searchAllChildren, treeNodeCollectionToLookIn[i].Nodes, foundTreeNodes); 383if (this[index] == node) 411if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, ignoreCase: true)) 420if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, ignoreCase: true)) 606this[index].Remove();
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2668UpdateCheckedState(node.Nodes[i], update); 2676UpdateCheckedState(node.Nodes[i], update);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
35? owningTreeView.Nodes[index].AccessibilityObject
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
320_selector.SelectedNode = _selector.Nodes[_initialActivePage];
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (8)
90TreeNode lastNode = _treeView1.Nodes[_treeView1.Nodes.Count - 1]; 93lastNode = lastNode.Nodes[lastNode.Nodes.Count - 1]; 611values[i] = _treeView1.Nodes[i].Clone(); 629_treeView1.Nodes[tempNode.Index].Nodes.Insert(0, tempNode); 636parent.Nodes[tempNode.Index].Nodes.Insert(0, tempNode); 663_treeView1.Nodes[tempNode.Index - 1].Nodes.Add(tempNode); 681parent.Nodes[tempNode.Index - 1].Nodes.Add(tempNode); 698&& _curNode != _treeView1.Nodes[_treeView1.Nodes.Count - 1];
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (1)
103? control.Nodes[index].AccessibilityObject
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
65Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]);