ListViewItem.StateImageIndex Property

Gets or sets the index of the state image (an image such as a selected or cleared check box that indicates the state of the item) that is displayed for the item.

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

public int StateImageIndex { get; set; }
/** @property */
public int get_StateImageIndex ()

/** @property */
public void set_StateImageIndex (int value)

public function get StateImageIndex () : int

public function set StateImageIndex (value : int)

Property Value

The zero-based index of the state image in the ImageList that is displayed for the item.

Exception typeCondition


The value specified for this property is less than -1.


The value specified for this property is greater than 14.

This property allows you to specify the index into the ImageList assigned to the StateImageList property of the associated ListView control, where the state images to display to the left of the item are stored. Typically, the state image is a selected or cleared check box or an image that is intended to represent selected or cleared states for the item. If no value is specified for the StateImageList property, the ListView control displays a default selected or cleared check box when the CheckBoxes property of the control is set to true.


Although the ImageList specified in the StateImageList property can contain any number of images, and the StateImageIndex property can be set to any value equal to or lower than 14, only the images at index positions 0 and 1 are displayed as state images.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0