2014-10-31 22 views

回答

0

所以我想通过访问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直接,它不会显示在所有的图像。 我没有足够的经验来理解为什么这是不可能的。