Experimental: this API is experimental and might be changed or removed in the future.

VisualElement.GetFirstAncestorOfType

Switch to Manual
public T GetFirstAncestorOfType ();

Description

从此元素的父级开始向上访问层级视图,返回第一个此类型的 VisualElement