[]
Navigates up the tree to find an ancestor of a given type.
public Element GetParentOfType(Type type)
Type | Name | Description |
---|---|---|
Type | type | Type of element we're looking for. |
Type | Description |
---|---|
Element | A reference to the ancestor of the given type, null if not found. |