.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
giskumar
188 Views, 1 Reply

ImageList

Hi,

 

I am using ImageList to store a group of images.

I would like to read the image name from the imagelist based on index value.

Please let me know how can i do this....

 

 

Thanks,

Kumar.

1 REPLY 1
Message 2 of 2
norman.yuan
in reply to: giskumar

Each item in the ImageList.Images collection is an object of Image class, which does not have a property, something like "Name". Are you expeccting the file name of the image that is added to the ImageList? When a image is added to ImageList from a file, it is the Image's binary data is read into the ImageList. That is, the file name only exists when a Image is saved as file. There is possible to create an Image without saving it as file. That is, there is no "Name" you can get from an Image object.

 

Norman Yuan

Drive CAD With Code

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost