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

VisualElement.GetFirstAncestorOfType

切换到手册
public T GetFirstAncestorOfType ();

描述

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