如何在c# winforms中删除treeview的空格? [英] How to remove blank spaces of treeview in c# winforms?

查看:29
本文介绍了如何在c# winforms中删除treeview的空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上图中,名称sebin joseph"位于树视图中.

In above diagram the name 'sebin joseph' is in a treeview.

将 treeview ShowLines 属性设为 false.

Make treeview ShowLines property to false.

如上图所示,如何从树视图中删除左侧空间?

How to remove left side space from treeview as in the above diagram?

推荐答案

您可以通过设置 ShowRootLines 属性为 false.

You can remove the left side space by setting ShowRootLines property to false.

但请注意,它还会从根节点中删除加号/减号,因此展开/折叠它们的唯一方法是双击或使用键盘.

But note that it will also remove the plus/minus from the root nodes, so the only way to expand/collapse them would be the double click or using keyboard.

这篇关于如何在c# winforms中删除treeview的空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆