Edit

Share via


ListView.GroupImageList Property

Definition

The currently set GroupIcon image list.

public:
 property System::Windows::Forms::ImageList ^ GroupImageList { System::Windows::Forms::ImageList ^ get(); void set(System::Windows::Forms::ImageList ^ value); };
public System.Windows.Forms.ImageList GroupImageList { get; set; }
public System.Windows.Forms.ImageList? GroupImageList { get; set; }
member this.GroupImageList : System.Windows.Forms.ImageList with get, set
Public Property GroupImageList As ImageList

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