"SelectionCloseUnselectedCells"
This token has not been fully integrated into the long-term Wolfram Language, and is subject to change.
"SelectionCloseUnselectedCells"
is a front end token that closes all unselected cells within a cell group.
Details

- "SelectionCloseUnselectedCells" is equivalent to Cell ▶ Grouping ▶ Close Unselected Cells.
- A typical use is FrontEndExecute[FrontEndToken["SelectionCloseUnselectedCells"]].