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