public int IndexOf(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.