({{, (RefLink[GraphicsGroup, paclet:ref/GraphicsGroup])[{(Subscript[g, 1]),(Subscript[g, 2]),…}]
represents a collection of graphics objects grouped together for purposes of interactive selection in a notebook. }})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[GraphicsGroup, paclet:ref/GraphicsGroup]) works with both two- and three-dimensional graphics.

A graphics group can typically be created by applying the (MenuGrayLink[Group, paclet:ref/menuitem/Group]) item in the (MenuGrayLink[Graphics, paclet:guide/GraphicsMenu]) menu to a collection of selected graphics.

With the default setting (RefLink[ContentSelectable, paclet:ref/ContentSelectable])->(RefLink[Automatic, paclet:ref/Automatic]), double-clicking allows you to select an individual graphics object (Subscript[g, i]) within the group.

With (RefLink[ContentSelectable, paclet:ref/ContentSelectable])->(RefLink[False, paclet:ref/False]), individual objects within the group cannot separately be selected, unless they are first explicitly ungrouped.

With (RefLink[ContentSelectable, paclet:ref/ContentSelectable])->(RefLink[True, paclet:ref/True]), objects within the group can be selected immediately with a single click.

(RefLink[GraphicsGroup, paclet:ref/GraphicsGroup]) always defines a level in the hierarchy of a graphics expression, so that for example (Key1[ctrl, .]) goes to the next enclosing (RefLink[GraphicsGroup, paclet:ref/GraphicsGroup]). »

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

A group of primitives to be selected together:

Graphics[GraphicsGroup[{Pink,Disk[{0,0}],Disk[{1,0}]}]]

OpenersExampleSection1(Spacer1)Scope  (2)

Combine multiple primitives in groups:

a=GraphicsGroup[{Circle[],Circle[{1,1}]}];

b=GraphicsGroup[{FaceForm[],EdgeForm[Black],Rectangle[{3,-1},{5,1}],Rectangle[{4,0},{6,2}]}];

Graphics[{a,b}]

Define the hierarchy within graphics:

Graphics[GraphicsGroup[{Red,Disk[{0,0}],GraphicsGroup[{Green,Disk[{1,0}],GraphicsGroup[{Blue,Disk[{2,0}]}]}]}]]

OpenersExampleSection2(Spacer1)Options  (3)

OpenersExampleSubsection0(Spacer1)ContentSelectable  (3)

No individual object is selectable; the graphics group appears as one object:

Graphics[{Blue,Disk[{-3,0}],GraphicsGroup[{Pink,Disk[],Rectangle[{2,-1},{4,1}]},ContentSelectable->False]}]

Allow the individual objects in the graphics group to be selectable by a single click:

Graphics[{Blue,Disk[{-3,0}],GraphicsGroup[{Pink,Disk[],Rectangle[{2,-1},{4,1}]},ContentSelectable->True]}]

The first click selects the whole group, and subsequent clicks select individual objects:

Graphics[{Blue,Disk[{-3,0}],GraphicsGroup[{Pink,Disk[],Rectangle[{2,-1},{4,1}]},ContentSelectable->Automatic]}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Inset, paclet:ref/Inset])  ▪  (RefLink[GraphicsComplex, paclet:ref/GraphicsComplex])  ▪  (RefLink[GraphicsGrid, paclet:ref/GraphicsGrid])  ▪  (RefLink[ContentSelectable, paclet:ref/ContentSelectable])  ▪  (RefLink[Selectable, paclet:ref/Selectable])  ▪  (RefLink[AffineTransform, paclet:ref/AffineTransform])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Redrawing and Combining Plots, paclet:tutorial/RedrawingAndCombiningPlots])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Combining Graphics, paclet:guide/CombiningGraphics])}, {▪(RefLinkPlain[Symbolic Graphics Language, paclet:guide/SymbolicGraphicsLanguage])}})}})