TreeDataStructureExtensionsCollapseAllTSource(IEnumerableTreeDataStructureTSource, Int32) Method

Collapses all nodes in the collection up to given level.

Definition

Namespace: Aliquo.Windows.Base
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public static void CollapseAll<TSource>(
	this IEnumerable<TreeDataStructure<TSource>> source,
	int level
)

Parameters

source  IEnumerableTreeDataStructureTSource
An enumerable collection instance of type TreeDataStructureT.
level  Int32
Specifies the level of nodes to expand.

Type Parameters

TSource
The type of the elements of source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTreeDataStructureTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also