FlexSheet for WPF | ComponentOne
C1.Util Namespace / Util Class / GetFirstChildOfType<T> Method
Type to look for.
Parent element.

In This Topic
    GetFirstChildOfType<T> Method
    In This Topic
    Gets an element's first child of a given type.
    Syntax
    'Declaration
     
    
    Public Shared Function GetFirstChildOfType(Of T As DependencyObject)( _
       ByVal e As FrameworkElement _
    ) As T
    public static T GetFirstChildOfType<T>( 
       FrameworkElement e
    )
    where T: DependencyObject

    Parameters

    e
    Parent element.

    Type Parameters

    T
    Type to look for.

    Return Value

    Element's first child of type T (or the element itself if it is of type T).
    See Also