VisualElement.Hierarchy.RemoveAt

Declaration

public void RemoveAt(int index);

Description

Remove the child element located at this position from this element's contentContainer

Removes the element from both the child list and the layout list. If the index is out of range, an exception will be thrown. Trying to remove an element during a layout pass will trigger an invalid operation exception to prevent unintended consequences.


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