To perform the command, right-click on an icon in the structure and select Collapse All in the context menu.
To open a closed icon, select the Expand All command.