eDriven Framework API
FindParent<(Of <(<'T>)>)> Method (component)
Namespaces ► eDriven.Gui.Designer ► GuiLookup ► FindParent<(Of <<'(T>)>>)(Component)
eDriven Framework API
Finds a parent of the component where the parent type is being T (bottom-up)
Returns null if such a parent not found
Declaration Syntax

C# | Visual Basic | Visual C++

    public static T FindParent<T>(
    	Component component
    )
    where T : Component

    Public Shared Function FindParent(Of T As Component) ( _
    	component As Component _
    ) As T

    public:
    generic<typename T>
    where T : Component
    static T FindParent(
    	Component^ component
    )

Generic Template Parameters

T
  Parent type

Parameters

component (Component)
  Component

Return Value

Assembly: eDriven.Gui.Designer (Module: eDriven.Gui.Designer) Version: 2.0.1.0 (2.0.1.0)