下面的示例展示了如何把焦点移入特定的节点。 为了完成此任务,所需的节点被指派到了 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)
|
![]() ![]() |
Windows 窗体组件 |
如何: 把焦点设置到特定节点 |
下面的示例展示了如何把焦点移入特定的节点。 为了完成此任务,所需的节点被指派到了 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)
|