ExtensionMethodsGetSelfAndDescendants Method |
Returns a flattened collection of a control and all of its descendant controls.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic static IEnumerable<Control> GetSelfAndDescendants(
this Control control
)
<ExtensionAttribute>
Public Shared Function GetSelfAndDescendants (
control As Control
) As IEnumerable(Of Control)
public:
[ExtensionAttribute]
static IEnumerable<Control^>^ GetSelfAndDescendants(
Control^ control
)
[<ExtensionAttribute>]
static member GetSelfAndDescendants :
control : Control -> IEnumerable<Control>
Parameters
- control Control
- The control to start from.
Return Value
IEnumerableControlAn 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