Property SmallImageList
SmallImageList
Gets or sets the ImageList to use when displaying items as small icons in the control.
public virtual ImageList? SmallImageList { get; set; }
Property Value
- ImageList
An ImageList that contains the icons to use when the View property is set to any value other than LargeIcon. The default is
null
.
Remarks
The SmallImageList property allows you to specify an ImageList object that contains icons to use when displaying items with small icons (when the View property is set to any value other than LargeIcon). 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 SmallImageList property, you can set the ImageIndex property of each ListViewItem in the ListView control to the index position of the appropriate image in the ImageList. The size of the icons for the SmallImageList is specified by the ImageSize property.
Because only one index can be specified for the ImageIndex property, the ImageList objects specified in the LargeImageList and SmallImageList properties should have the same index positions for the images to display. For example, if the ImageIndex property of a ListViewItem is set to 0, the images to use for both small and large icons should be at the same index position in the ImageList objects specified in the LargeImageList and SmallImageList properties.
To set the ImageList to use when displaying items with large icons (when the View property is set to LargeIcon), use the LargeImageList property.