35 references to Index
System.Windows.Forms (1)
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
382int newPage = _selector.SelectedNode!.Index;
System.Windows.Forms.Design (14)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (14)
628_treeView1.Nodes.RemoveAt(tempNode.Index); 629_treeView1.Nodes[tempNode.Index].Nodes.Insert(0, tempNode); 633parent.Nodes.RemoveAt(tempNode.Index); 634if (tempNode.Index < parent.Nodes.Count) 636parent.Nodes[tempNode.Index].Nodes.Insert(0, tempNode); 642_treeView1.Nodes.Insert(parent.Index + 1, tempNode); 646parent.Parent.Nodes.Insert(parent.Index + 1, tempNode); 662_treeView1.Nodes.RemoveAt(tempNode.Index); 663_treeView1.Nodes[tempNode.Index - 1].Nodes.Add(tempNode); 667parent.Nodes.RemoveAt(tempNode.Index); 668if (tempNode.Index == 0) 672_treeView1.Nodes.Insert(parent.Index, tempNode); 676parent.Parent.Nodes.Insert(parent.Index, tempNode); 681parent.Nodes[tempNode.Index - 1].Nodes.Add(tempNode);
System.Windows.Forms.Tests (20)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
31Assert.Equal(0, treeNode.Index);
System\Windows\Forms\TreeNodeTests.cs (19)
26Assert.Equal(0, node.Index); 66Assert.Equal(0, node.Index); 114Assert.Equal(0, node.Index); 157Assert.Equal(0, node.Index); 205Assert.Equal(0, node.Index); 1593Assert.Equal(0, node.Index); 1611Assert.Equal(0, node.Index); 1630Assert.Equal(0, node1.Index); 1631Assert.Equal(1, node2.Index); 1632Assert.Equal(2, node3.Index); 1633Assert.Equal(0, node4.Index); 1651Assert.Equal(0, node1.Index); 1652Assert.Equal(1, node2.Index); 1653Assert.Equal(2, node3.Index); 1654Assert.Equal(0, node4.Index); 1680Assert.Equal(0, node1.Index); 1681Assert.Equal(1, node2.Index); 1682Assert.Equal(2, node3.Index); 1683Assert.Equal(0, node4.Index);