| UIHelperGetDescendants Method (UIControl, Boolean) |
Gets the descendants of the control in the visual tree using either a depth-first or a
breadth-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> GetDescendants(
this UIControl control,
bool depthFirst
)
<ExtensionAttribute>
Public Shared Function GetDescendants (
control As UIControl,
depthFirst As Boolean
) As IEnumerable(Of UIControl)
public:
[ExtensionAttribute]
static IEnumerable<UIControl^>^ GetDescendants(
UIControl^ control,
bool depthFirst
)
[<ExtensionAttribute>]
static member GetDescendants :
control : UIControl *
depthFirst : bool -> IEnumerable<UIControl>
Parameters
- control
- Type: DigitalRune.Game.UI.ControlsUIControl
The control where to start the search. - depthFirst
- Type: SystemBoolean
If set to then a depth-first search for descendants will be made;
otherwise a breadth-first search will be made.
Return Value
Type:
IEnumerableUIControlThe descendants of
control 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