2011-06-20 147 views
0

如果這是如何設置的,是否可以導出在列表視圖控件中單擊的圖像?從列表視圖中獲取圖像

imageListLarge.Images.Add(Bitmap.FromFile("C:\\MyLargeImage1.bmp")); 
imageListLarge.Images.Add(Bitmap.FromFile("C:\\MyLargeImage2.bmp")); 

//Assign the ImageList objects to the ListView. 
listView1.LargeImageList = imageListLarge; 

如果我能得到圖像類型,那麼我不會如何處理以下步驟。

由於

回答

1

添加標記屬性圖像陣列項目的每個列表視圖項。

+0

你不能使用標籤 - http://connect.microsoft.com/VisualStudio/feedback/details/115832/imagelist-does-not-preserve-the-tag-property-of-images-added – rik