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.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
'Declaration <RelatedImageListAttribute("ListView.StateImageList")> _ Public Property StateImageIndex As Integer 'Usage Dim instance As ListViewItem Dim value As Integer value = instance.StateImageIndex instance.StateImageIndex = value
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.