Intersoft ClientUI Documentation
TraverseChildrens Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > Utility Class : TraverseChildrens Method






element
The UIElement to be traversed.
deepLength
The deep length of children to be traversed.
action
The method that will be invoked on each child element found during traversal process.
Deep traverse the children of the specified UIElement and return the children based on condition in the provided Action.

Syntax

Visual Basic (Declaration) 
Public Shared Function TraverseChildrens( _
   ByVal element As UIElement, _
   ByVal deepLength As Integer, _
   ByVal action As Action(Of UIElement,TraverseEventArg) _
) As UIElement
Visual Basic (Usage)Copy Code
Dim element As UIElement
Dim deepLength As Integer
Dim action As Action(Of UIElement,TraverseEventArg)
Dim value As UIElement
 
value = Utility.TraverseChildrens(element, deepLength, action)
C# 
public static UIElement TraverseChildrens( 
   UIElement element,
   int deepLength,
   Action<UIElement,TraverseEventArg> action
)
Delphi 
public function TraverseChildrens( 
    element: UIElement;
    deepLength: Integer;
    action: Action
): UIElement; static; 
JScript 
public static function TraverseChildrens( 
   element : UIElement,
   deepLength : int,
   action : Action
) : UIElement;
Managed Extensions for C++ 
public: static UIElement* TraverseChildrens( 
   UIElement* element,
   int deepLength,
   Action<UIElement*,TraverseEventArg*>* action
) 
C++/CLI 
public:
static UIElement^ TraverseChildrens( 
   UIElement^ element,
   int deepLength,
   Action<UIElement^,TraverseEventArg^>^ action
) 

Parameters

element
The UIElement to be traversed.
deepLength
The deep length of children to be traversed.
action
The method that will be invoked on each child element found during traversal process.

Return Value

Returns child element.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.