1
我有困难排序树形目录节点,则在位置0排序树形目录节点,然后插入在(0)
For x
'Add nodes from database here
Next
tvwMain.Sort()
tvwMain.Nodes.Insert(0, "MainStepNode", "STEPS")
插入特定节点上运行上述代码后,我的MainStepNode“台阶”获取节点当我特别希望这个节点位于0的时候,在VB.NET中有没有对你有的节点进行排序,停止排序,然后在某些点添加某些节点?
tvwMain是一个System.Windows.Forms.TreeView对象,但我没有看到.Sorted作为选项。 – Alex
Sorted属性标记为EditorBrowsable属性,设置为EditorBrowsableState.Never。这意味着当您在编辑器中输入时,它不会显示为IntelliSense。 –