获取层级视图项祖先的列表。
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。