ListView::StateImageList Property


Gets or sets the ImageList associated with application-defined states in the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

property ImageList^ StateImageList {
	ImageList^ get();
	void set(ImageList^ value);

Property Value

Type: System.Windows.Forms::ImageList^

An ImageList that contains a set of state images that can be used to indicate an application-defined state of an item. The default is null.

The StateImageList property allows you to specify an ImageList that contains images to use to represent an application-specific state of an item in a ListView control. State images are displayed to the left of an icon for the item. You can use state images, such as checked and unchecked check boxes, to indicate application-defined item states. State images are visible in all views of the ListView control.

If an ImageList is specified in the StateImageList property and the CheckBoxes property is set to true, the images at index positions 0 and 1 in the ImageList are displayed instead of the check box. The image at index position 0 is displayed instead of the unchecked check box, and the image at index position 1 is displayed instead of the checked check box.

.NET Framework
Available since 1.1
Return to top