System.Windows.Forms.DrawTreeNodeEventArgs.State Property

Gets the current state of the System.Windows.Forms.TreeNode to draw.

Syntax

public TreeNodeStates State { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to check whether the System.Windows.Forms.TreeNode object to draw is in a particular state. This property provides only basic state information about the node. You can use this property, for example, to determine whether a node is selected, checked, or focused. If you need to know more, retrieve the node through the DrawTreeNodeEventArgs.Node property. For example, to determine whether the node is expanded, you must retrieve the node and check the TreeNode.IsExpanded property.

Requirements

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