TreeView.SetupParentsAndChildrenFromDepths

切换到手册
protected static void SetupParentsAndChildrenFromDepths (IMGUI.Controls.TreeViewItem root, IList<TreeViewItem> rows);

参数

root隐藏的根项。
rows仅设置了深度属性的 TreeViewItem。

描述

使用已设置的顺序和深度值来初始化行的所有父属性和子属性的 Utility 方法。

有些树数据模型仅基于顺序和深度信息。创建所有行以根据每个项的深度信息初始化“rows”中每个 TreeViewItem 的“parent”和“children”属性后,可调用此方法。此方法假设 `rows` 中的数据按照在 TreeView 中从上到下的顺序显示。

另请参阅:SetupDepthsFromParentsAndChildrenBuildRoot