Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

TreeView.SetExpandedRecursive

public void SetExpandedRecursive(int id, bool expanded);

Parameters

id TreeViewItem ID.
expanded Expanded state: true expands, false collapses.

Description

Expand or collapse all items under item with id.

This is also used internally when Alt/Option + clicking an foldout arrow of an item to expand/collapse the entire sub-tree under this item.