EXPANDLEVEL Attribute | ExpandLevel Property

Sets or retrieves the number of levels to expand within the TreeView.

Syntax

ASP <tagPrefix:TREEVIEW EXPANDLEVEL = iExpandLevel ... >
Script [ iExpandLevel = ] TREEVIEW.ExpandLevel

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
iExpandLevel System.Int32 that specifies or receives the number of levels to expand within the TreeView.
0Default. The tree is completely collapsed.

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

Applies To

TREEVIEW

See Also

Internet Explorer WebControls, About the TreeView WebControl