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

VisualElement.Hierarchy.IndexOf

Switch to Manual
public int IndexOf (Experimental.UIElements.VisualElement element);

Parameters

elementThe element to return the index for.

Returns

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

Description

Retrieves the index of the specified VisualElement in the Hierarchy.