Version: 2021.2
言語: 日本語

TreeView.GetDescendantsThatHaveChildren

マニュアルに切り替える
protected IList<int> GetDescendantsThatHaveChildren (int id);

パラメーター

id TreeViewItem ID.

戻り値

IList<int> Descendants that have children.

説明

Returns all descendants for the item with ID id that have children.

It is used for expanding entire sub-trees. It is called automatically from some TreeView methods. If the full item tree has not been built in BuildRoot(), then override this method and use your back-end data to find the correct descendants for the given item.


Default behavior: The item with ID id is found by searching from the rootItem through all its descendants. Once found, all its descendants that have children are collected. Assumes the full tree has been built.

See Also: GetAncestors.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961