35 references to Parent
System.Windows.Forms (4)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
390node = node.Parent; 660public int Level => Parent is null ? 0 : Parent.Level + 1;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
140public override AccessibleObject? Parent => _owningTreeNode.Parent?.AccessibilityObject;
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2631ProjectDataMemberNode? parentListMember = (Parent as ProjectDataMemberNode);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (8)
558if (parent == child.Parent) 563child = child.Parent; 624TreeNode parent = _curNode.Parent; 640if (parent.Parent is null) 646parent.Parent.Nodes.Insert(parent.Index + 1, tempNode); 658TreeNode parent = _curNode.Parent; 670if (parent.Parent is null) 676parent.Parent.Nodes.Insert(parent.Index, tempNode);
System.Windows.Forms.Tests (22)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
150Assert.Equal(node.Parent.AccessibilityObject, actual); 328Assert.Equal(node.Parent.AccessibilityObject, node.AccessibilityObject.Parent);
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
44Assert.Null(treeNode.Parent);
System\Windows\Forms\TreeNodeTests.cs (19)
39Assert.Null(node.Parent); 79Assert.Null(node.Parent); 127Assert.Null(node.Parent); 170Assert.Null(node.Parent); 218Assert.Null(node.Parent); 2411Assert.Null(node.Parent); 2429Assert.Null(node.Parent); 2448Assert.Equal(parent, node1.Parent); 2449Assert.Equal(parent, node2.Parent); 2450Assert.Equal(parent, node3.Parent); 2451Assert.Equal(node3, node4.Parent); 2469Assert.Equal(parent, node1.Parent); 2470Assert.Equal(parent, node2.Parent); 2471Assert.Equal(parent, node3.Parent); 2472Assert.Equal(node3, node4.Parent); 2498Assert.Equal(parent, node1.Parent); 2499Assert.Equal(parent, node2.Parent); 2500Assert.Equal(parent, node3.Parent); 2501Assert.Equal(node3, node4.Parent);