({{, "OpenCloseGroup"
is a front end token that opens selected groups if they are closed or closes selected groups if they are open.}})

OpenersNotesSection(Spacer1)Details

"OpenCloseGroup" is equivalent to (MenuGrayLink[Cell, paclet:guide/CellMenu]) ▶ (MenuGrayLink[Grouping, paclet:ref/menuitem/Grouping]) ▶ (MenuGrayLink[Open/Close Group, paclet:ref/menuitem/OpenCloseGroup]).

"OpenCloseGroup" will affect only the outermost level of the selected groups.

A typical use is (RefLink[FrontEndExecute, paclet:ref/FrontEndExecute])[(RefLink[FrontEndToken, paclet:ref/FrontEndToken])["OpenCloseGroup"]].

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Front End Tokens:  (RefLink[CellGroup, paclet:ref/frontendobject/CellGroup])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Tokens Related to the Cell Menu, paclet:guide/CellTokens])}})}})