【发布时间】:2019-09-23 07:20:32
【问题描述】:
我正在使用虚拟树视图。有没有可靠的方法来知道一个节点是否是根节点?
我尝试使用
if not Assigned(Node.Parent) then
Output('This is root')
else
Output('This is not root')
但不起作用。
我尝试使用
if Node = tvItems.RootNode then
Output('This is root')
else
Output('This is not root')
但也不行。
【问题讨论】:
标签: delphi root virtualtreeview