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

VisualElement.Hierarchy.IndexOf

切换到手册
public int IndexOf (Experimental.UIElements.VisualElement element);

参数

elementThe element to return the index for.

返回

int Returns the index of the element, or -1 if the element is not found.

描述

Retrieves the index of the specified VisualElement in the Hierarchy.