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。 –