Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ExpandSubtree Method

TreeView.ExpandSubtree Method

.NET Framework 4.6 and 4.5

Expands the specified TreeViewItem control and all its child TreeViewItem elements.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected virtual bool ExpandSubtree(
	TreeViewItem container
)

Parameters

container
Type: System.Windows.Controls.TreeViewItem

The TreeViewItem to expand.

Return Value

Type: System.Boolean
true if the specified TreeViewItem and all its child elements were expanded; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft