Gets or sets the key of the image that is used to indicate the state of the System.Windows.Forms.TreeNode when the parent System.Windows.Forms.TreeView has its TreeView.CheckBoxes property set to false.
Documentation for this section has not yet been entered.
The image key that is returned by this property is contained in the TreeView.StateImageList property of the parent System.Windows.Forms.TreeView control.
If the parent System.Windows.Forms.TreeView has check boxes enabled, the TreeNode.StateImageKey is ignored and the node will display the first or second image in the TreeView.StateImageList set on the parent System.Windows.Forms.TreeView to indicate an unchecked or checked state, respectively. Toggling the TreeNode.Checked property does not affect the value of the TreeNode.StateImageKey.
The TreeNode.StateImageKey and TreeNode.StateImageIndex properties are mutually exclusive, meaning if one is set, the other is ignored. If you set the TreeNode.StateImageKey property, the TreeNode.StateImageIndex property is automatically set to -1. Alternatively, if you set TreeNode.StateImageIndex, TreeNode.StateImageKey is automatically set to an empty string (""). You should set the TreeNode.StateImageKey to an image with a corresponding index between 0 and 14. You can set the TreeNode.StateImageKey to an image with an index value greater than 14 (an exception will not be thrown), but the image may not be displayed