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

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

    Parameters

    e
    Child element.

    Type Parameters

    T
    Type to look for.
    See Also