下面的示例展示了如何把焦点移入特定的节点。 为了完成此任务,所需的节点被指派到了 TreeList.FocusedNode 属性。
| C# |  复制代码 | 
|---|---|
// Move focus to the first root node.
treeList1.FocusedNode = treeList1.Nodes[0];
 | |
| Visual Basic |  复制代码 | 
|---|---|
' Move focus to the first root node.
TreeList1.FocusedNode = TreeList1.Nodes(0)
 | |
  
  
  
  
  
  
  
