23 references to Level
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
660public int Level => Parent is null ? 0 : Parent.Level + 1;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
116UIA_PROPERTY_ID.UIA_LevelPropertyId => (VARIANT)(_owningTreeNode.Level + 1),
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
697&& (_curNode != LastNode || _curNode.Level > 0)
System.Windows.Forms.Tests (20)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
37Assert.Equal(0, treeNode.Level);
System\Windows\Forms\TreeNodeTests.cs (19)
32Assert.Equal(0, node.Level); 72Assert.Equal(0, node.Level); 120Assert.Equal(0, node.Level); 163Assert.Equal(0, node.Level); 211Assert.Equal(0, node.Level); 2003Assert.Equal(0, node.Level); 2021Assert.Equal(0, node.Level); 2040Assert.Equal(1, node1.Level); 2041Assert.Equal(1, node2.Level); 2042Assert.Equal(1, node3.Level); 2043Assert.Equal(2, node4.Level); 2061Assert.Equal(1, node1.Level); 2062Assert.Equal(1, node2.Level); 2063Assert.Equal(1, node3.Level); 2064Assert.Equal(2, node4.Level); 2090Assert.Equal(1, node1.Level); 2091Assert.Equal(1, node2.Level); 2092Assert.Equal(1, node3.Level); 2093Assert.Equal(2, node4.Level);