Version: 2021.3
public void GetItemAncestors (int id, List<int> outAncestors);

参数

id 层级视图项标识符。
outAncestors 使用项祖先标识符填充的列表(作为方法调用的结果)。

描述

获取层级视图项祖先的列表。

The result is written to outAncestors list which is resized if necessary. The list contains identifiers of item parents in bottom-up order.

另请参阅:TreeView.GetAncestors