This documentation is archived and is not being maintained.

ListViewItem.ImageList Property

Gets the ImageList that contains the image displayed with the item.

[Visual Basic]
Public ReadOnly Property ImageList As ImageList
[C#]
public ImageList ImageList {get;}
[C++]
public: __property ImageList* get_ImageList();
[JScript]
public function get ImageList() : ImageList;

Property Value

The ImageList used by the ListView control that contains the image displayed with the item.

Remarks

Depending on the current value of the View property of the ListView control associated with the item, the ImageList used by the item could be one specified in the LargeImageList property or the SmallImageList property of the ListView control. If the View property is set to View.LargeIcons, the ImageList specified in the LargeImageList property is used; otherwise the ImageList specified in the SmallImageList property is used. You can use this property to determine which ImageList control is providing the image for the item. To determine the index position in the ImageList that contains the image to display for the item, use the ImageIndex property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListViewItem Class | ListViewItem Members | System.Windows.Forms Namespace | ImageIndex

Show: