Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

VisualElement.IndexOf

public int IndexOf(Experimental.UIElements.VisualElement element);

Parameters

elementThe child to return the index for.

Returns

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

Description

Retrieves the child index of the specified VisualElement.

Did you find this page useful? Please give it a rating: