TreeView控件如何控制滚动条的位置

TreeNode.EnsureVisible():

  Ensures that the tree node is visible, expanding tree nodes and scrolling the tree view control as necessary.

滚动条移动到顶端:

1 this.treeView1.SelectedNode = this.treeView1.Nodes[0];
2 this.treeView1.Nodes[0].EnsureVisible();
posted @ 2019-09-17 14:03  Uniqueness  阅读(1495)  评论(0编辑  收藏  举报