ComponentOne FinancialChart for WPF
C1.WPF Namespace / VTreeHelper Class / GetChildOfType Method
The parent visual, referenced as a System.Windows.DependencyObject.
The System.Type of the children element to search for.



In This Topic
    GetChildOfType Method
    In This Topic
    Returns the first child visual object of the specified type within a specified parent.
    Syntax
    'Declaration
     
    
    Public Shared Function GetChildOfType( _
       ByVal reference As DependencyObject, _
       ByVal type As Type _
    ) As DependencyObject
    'Usage
     
    
    Dim reference As DependencyObject
    Dim type As Type
    Dim value As DependencyObject
     
    value = VTreeHelper.GetChildOfType(reference, type)
    public static DependencyObject GetChildOfType( 
       DependencyObject reference,
       Type type
    )
    public:
    static DependencyObject^ GetChildOfType( 
       DependencyObject^ reference,
       Type^ type
    ) 

    Parameters

    reference
    The parent visual, referenced as a System.Windows.DependencyObject.
    type
    The System.Type of the children element to search for.

    Return Value

    The visual object of the specified type.
    See Also