System.Web.UI.WebControls.TreeView.ShowExpandCollapse Property

Gets or sets a value indicating whether expansion node indicators are displayed.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool ShowExpandCollapse { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Expansion node indicators are used to show whether a node is expanded, collapsed, or non-expandable. Use the TreeView.ShowExpandCollapse property to specify whether the expansion node indicators are displayed in the System.Web.UI.WebControls.TreeView control.

When the TreeView.ShowExpandCollapse property is set to true, the System.Web.UI.WebControls.TreeView control displays a plus sign (+) or minus sign (-) or a placeholder image next to a node to indicate whether the node is expandable, collapsible, or non-expandable, respectively. You can specify custom images by first setting the TreeView.ImageSet property to TreeViewImageSet.Custom, and then setting the TreeView.NoExpandImageUrl, TreeView.ExpandImageUrl, and TreeView.CollapseImageUrl properties to the URLs of the custom images. If no images are specified, the default images are used.

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