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