Export (0) Print
Expand All

ListViewItem.ImageList Property

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

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public ImageList ImageList { get; }
/** @property */
public ImageList get_ImageList ()

public function get ImageList () : ImageList

Property Value

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

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 LargeIcon, 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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft