Click or drag to resize

ExtensionMethodsGetSelfAndDescendants Method

Returns a flattened collection of a control and all of its descendant controls.

Namespace: Jam.Shell
Assembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntax
public static IEnumerable<Control> GetSelfAndDescendants(
	this Control control
)

Parameters

control  Control
The control to start from.

Return Value

IEnumerableControl
An enumerable collection of controls.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Control. 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