2014-10-31 33 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直接,它不會顯示在所有的圖像。 我沒有足夠的經驗來理解爲什麼這是不可能的。