Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

BaseVerticalCollectionView.GetRootElementForIndex

Declaration

public UIElements.VisualElement GetRootElementForIndex(int index);

Parameters

Description
index The item index.

Returns

VisualElement The item's root element.

Description

Gets the root element of the specified collection view item.

This method provides an entry point to re-style elements added by Unity over the user-driven content. Ex. the drag handle in a ListView, or the Toggle in a TreeView.