[WinForm]ListView行高的设置

来源:互联网 发布:bigworld引擎全套源码 编辑:程序博客网 时间:2024/05/18 19:22

winform中,listview是没有办法设置行高的,没行之间排得密密麻麻的,很不好!

可以加入一个imagelist来 撑大 行,实现行高的设置!

// 设置行高ImageList imgList = new   ImageList();// 分别是宽和高imgList.ImageSize = new Size(1,   20);// 这里设置listView的SmallImageList ,用imgList将其撑大listView1.SmallImageList = imgList;   
0 0
原创粉丝点击