6 references to IndexOf
System.Windows.Forms (3)
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
122internal int Index => _owningTreeView.Nodes.IndexOf(_owningTreeNode);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
370public bool Contains(TreeNode node) => IndexOf(node) != -1; 394? IndexOf(treeNode)
System.Windows.Forms.Tests (3)
System\Windows\Forms\TreeNodeCollectionTests.cs (3)
263treeView.Nodes.IndexOf(treeNode).Should().Be(3); 313treeView2.Nodes.IndexOf(treeNode).Should().Be(1); 329treeView3.Nodes.IndexOf(treeNode).Should().Be(1);