Method AllParents
AllParents(Element?)
Enumerates all parent elements of the specified VisualElement.
public static IEnumerable<Element> AllParents(Element? element)
Parameters
element
ElementThe VisualElement to retrieve parents for.
Returns
- IEnumerable<Element>
An enumerable collection of parent VisualElement instances.