从获取列表视图图像 [英] Get image from list view

查看:119
本文介绍了从获取列表视图图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能得到ListView控件图像点击这是怎么设置的?

Is it possible to derive the image clicked in a listview control if this is how its setup?

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;

如果我能得到的图像类型那我就没有如何处理以下步骤。

If i could get the image type then i would no how to handle the following steps.

感谢

推荐答案

添加标签属性图像阵列项目的每个ListView项。

Add a tag property for each listview item of image array item.

这篇关于从获取列表视图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆