23 references to Level
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
660
public int Level => Parent is null ? 0 : Parent.
Level
+ 1;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
116
UIA_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)
37
Assert.Equal(0, treeNode.
Level
);
System\Windows\Forms\TreeNodeTests.cs (19)
32
Assert.Equal(0, node.
Level
);
72
Assert.Equal(0, node.
Level
);
120
Assert.Equal(0, node.
Level
);
163
Assert.Equal(0, node.
Level
);
211
Assert.Equal(0, node.
Level
);
2003
Assert.Equal(0, node.
Level
);
2021
Assert.Equal(0, node.
Level
);
2040
Assert.Equal(1, node1.
Level
);
2041
Assert.Equal(1, node2.
Level
);
2042
Assert.Equal(1, node3.
Level
);
2043
Assert.Equal(2, node4.
Level
);
2061
Assert.Equal(1, node1.
Level
);
2062
Assert.Equal(1, node2.
Level
);
2063
Assert.Equal(1, node3.
Level
);
2064
Assert.Equal(2, node4.
Level
);
2090
Assert.Equal(1, node1.
Level
);
2091
Assert.Equal(1, node2.
Level
);
2092
Assert.Equal(1, node3.
Level
);
2093
Assert.Equal(2, node4.
Level
);