TreeNode.Level TreeNode.Level TreeNode.Level TreeNode.Level Property

定義

取得樹狀節點在 TreeView 控制項中的深度,以零起始。Gets the zero-based depth of the tree node in the TreeView control.

public:
 property int Level { int get(); };
[System.ComponentModel.Browsable(false)]
public int Level { get; }
member this.Level : int
Public ReadOnly Property Level As Integer

屬性值

樹狀節點在 TreeView 控制項中的深度,以零起始。The zero-based depth of the tree node in the TreeView control.

備註

Level對於屬性,會將根節點視為第一個嵌套層級,並傳回0。For the Level property, the root node is considered the first level of nesting and returns 0.

適用於