GroupShape class

Office 2013 and later

Defines the GroupShape Class. When the object is serialized out as xml, its qualified name is dsp:grpSp.

Namespace:  DocumentFormat.OpenXml.Office.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.5.42 CT_GroupShape

Target namespace: http://schemas.microsoft.com/office/drawing/2008/diagram

Referenced by: CT_GroupShape, CT_Drawing

This element specifies a group shape that represents one or more shapes grouped together. This shape is to be treated as if it were a regular shape, but instead of being described by a single geometry, it is made up of all the shape geometries encompassed within it. Within a group shape, each shape in the group is specified as it normally would be. However, a single transform can apply to the group of shapes as though it were a single shape.

Child Elements:

nvGrpSpPr: A CT_GroupShapeNonVisual element that specifies the non-visual properties of the group shape.

grpSpPr: A CT_GroupShapeProperties element ([ISO/IEC-29500-1] section A.4.1) that specifies group shape properties.

sp: A CT_Shape element that specifies a shape that is a child of this group.

grpSp: A CT_GroupShape element that specifies a group shape that is a child of this group.

extLst: A CT_OfficeArtExtensionList element ([ISO/IEC-29500-1] section A.4.1) that enables future extensions to the group shape.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_GroupShape">

<xsd:sequence>

<xsd:element name="nvGrpSpPr" type="CT_GroupShapeNonVisual" minOccurs="1" maxOccurs="1"/>

<xsd:element name="grpSpPr" type="a:CT_GroupShapeProperties" minOccurs="1" maxOccurs="1"/>

<xsd:choice minOccurs="0" maxOccurs="unbounded">

<xsd:element name="sp" type="CT_Shape"/>

<xsd:element name="grpSp" type="CT_GroupShape"/>

</xsd:choice>

<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

See section 5.6 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: