| UIHelperGetSubtree Method (UIControl) |
Gets the subtree (the given control and all of its descendants in the visual tree) using a
depth-first search.
Namespace: DigitalRune.Game.UIAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public static IEnumerable<UIControl> GetSubtree(
this UIControl control
)
<ExtensionAttribute>
Public Shared Function GetSubtree (
control As UIControl
) As IEnumerable(Of UIControl)
public:
[ExtensionAttribute]
static IEnumerable<UIControl^>^ GetSubtree(
UIControl^ control
)
[<ExtensionAttribute>]
static member GetSubtree :
control : UIControl -> IEnumerable<UIControl>
Parameters
- control
- Type: DigitalRune.Game.UI.ControlsUIControl
The control where to start the search.
Return Value
Type:
IEnumerableUIControl
The
control and all of its descendants in the visual tree.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
UIControl. 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).
Exceptions See Also