TreeView的+号 [英] TreeView + sign
问题描述
我有1个主节点和若干子节点的TreeView,
I have treeview with 1 main node and several sub-nodes,
如何隐藏的+号在主节点?
How can I hide the + sign in the main node?
谢谢,
推荐答案
物业t检讨: .ShowRootLines =假
Treview Property: .ShowRootLines = false
在 ShowRootLines
是假的,正/负号将不会显示根节点,但仍会子节点上,如果必要。
When ShowRootLines
is false, the Plus/Minus sign will not be shown for the root node, but will still show when necessary on child nodes.
随着正/负号隐藏,你可能会考虑在执行展开根节点()
方法,一旦树被填充。 。这将确保根节点显示所有第一级子节点
With the Plus/Minus sign hidden, you might consider executing the Expand()
method of the root node once the tree is populated. That will make sure that the root node shows all first-level child nodes.
请注意:有一个 ShowPlusMinus
在TreeView的属性,但它的工作原理上的所有的节点。
Note: There is a ShowPlusMinus
property on the TreeView, but it works on all nodes.
这篇关于TreeView的+号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!