解决方法: this.treeView.Height = (this.treeView.Height / this.treeView.ItemHeight) * this.treeView.ItemHeight + 3;