ListView.GroupImageList Property

Definition

The currently set GroupIcon image list.

public System.Windows.Forms.ImageList GroupImageList { get; set; }
public System.Windows.Forms.ImageList? GroupImageList { get; set; }

Property Value

An ImageList that contains the icons to use for ListViewGroup. The default is null.

Remarks

The GroupImageList property allows you to specify an ImageList object that contains icons to use when displaying groups. The ListView control can accept any graphics format that the ImageList control supports when displaying icons. The ListView control is not limited to .ico files. Once an ImageList is assigned to the GroupImageList property, you can set the TitleImageIndex property of each ListViewGroup in the ListView control to the index position of the appropriate image in the ImageList. The size of the icons for the GroupImageList is specified by the ImageSize property.

Applies to

Produit Versions
Windows Desktop 5, 6, 7, 8, 9