Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TreeViewState.expandedIDs

public var expandedIDs: List<int>;

Description

This is the list of currently expanded TreeViewItem IDs.

This state is maintained by the TreeView when the user interacts with the TreeView and when using the API. The TreeView assumes the list is sorted. So if setting this directly ensure to to sort the list afterwards: expandedIDs.Sort(); It is recommended to use the TreeView.SetExpanded instead which automatically handles this.

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