BaseVerticalCollectionView.GetRootElementForIndex

Declaration

public UIElements.VisualElement GetRootElementForIndex(int index);

Parameters

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.


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