Partager via


EXPANDED Attribute | Expanded Property

Sets or retrieves a value that indicates whether or not the node is expanded.

Syntax

Visual Basic  Public  Property Expanded As bool
C# public  bool Expanded { get; set; }
Managed C++ public:  __property bool get_Expanded();
public:  __property void set_Expanded(bool);
JScript public   function get Expanded() : bool;
public   function set Expanded(bool);

Possible Values

bExpanded bool that specifies or receives the expanded state of a node.
falseDefault. The node is collapsed.
trueThe node is expanded.

The property is read/write. The property has a default value of false.

Remarks

You can expand a node by setting this property to true.

Applies To

TREENODE

See Also

Internet Explorer WebControls, About the TreeView WebControl