[]
        
(Showing Draft Content)

C1.Framework.Element.GetParentOfType

GetParentOfType Method

GetParentOfType(Type)

Navigates up the tree to find an ancestor of a given type.

Declaration
public Element GetParentOfType(Type type)
Parameters
Type Name Description
Type type

Type of element we're looking for.

Returns
Type Description
Element

A reference to the ancestor of the given type, null if not found.