System.Web.UI.WebControls.TreeNode.Checked Property

Gets or sets a value that indicates whether the node's check box is selected.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool Checked { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When a node displays a check box, the TreeNode.Checked property is commonly used to specify whether the check box is selected. When the check box associated with a node is selected, the node is automatically added to the TreeView.CheckedNodes collection of the System.Web.UI.WebControls.TreeView control. The TreeNode.Checked property can also be used to determine whether the check box is selected.

Note:

It is more common to determine which nodes in the System.Web.UI.WebControls.TreeView control have their check boxes selected by iterating through the TreeView.CheckedNodes collection.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0