System.Windows.Forms.TreeNodeStates Enumeration

Defines constants that represent the possible states of a System.Windows.Forms.TreeNode.

Syntax

[System.Flags]
public enum TreeNodeStates

Remarks

This enumeration is used by the DrawTreeNodeEventArgs.State property of the System.Windows.Forms.DrawTreeNodeEventArgs class. For more information, see the TreeView.DrawNode event.

Members

Member NameDescription
Checked

The node is checked.

Default

The node is in its default state.

Focused

The node has focus.

Grayed

The node is disabled.

Hot

The node is hot. This state occurs when the TreeView.HotTracking property is set to true and the mouse pointer is over the node.

Indeterminate

The node in an indeterminate state.

Marked

The node is marked.

Selected

The node is selected.

ShowKeyboardCues

The node should indicate a keyboard shortcut.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0