ListViewItem.ImageList Property

Definition

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

public:
 property System::Windows::Forms::ImageList ^ ImageList { System::Windows::Forms::ImageList ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ImageList ImageList { get; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ImageList? ImageList { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ImageList : System.Windows.Forms.ImageList
Public ReadOnly Property ImageList As ImageList

Property Value

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

Attributes

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

Applies to

See also