Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The specified index is less than -1 or greater than 14.
If the parent TreeView has check boxes enabled, the is ignored and the node will display the first or second image in the StateImageList set on the parent TreeView to indicate an unchecked or checked state, respectively. Toggling the Checked property does not affect the value of the .
The StateImageKey and properties are mutually exclusive, meaning if one is set, the other is ignored. If you set the StateImageKey property, the property is automatically set to -1. Alternatively, if you set , StateImageKey is automatically set to an empty string ("").returns -1 when not set. The
Available since 2.0