在对象列表视图中更改组标题的图像大小
答
所以我想通过访问ImageList.ImageSize
可以设置大小。确保您在将图像列表附加到ObjectListView.GroupImageList
之前将其设置在图像列表中。
例子:
ImageList imgList = new ImageList();
imgList.ImageSize = new Size(x, y);
//Add [key/img] to the list.
this.objectListView.GroupImageList = imgList;
出于某种原因,你不能设置objectListView.GroupImageList.ImageSize
直接,它不会显示在所有的图像。 我没有足够的经验来理解为什么这是不可能的。