次の方法で共有


GroupShape Class

Group Shape.When the object is serialized out as xml, its qualified name is cdr:grpSp.

Inheritance Hierarchy

System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.ChartDrawing.GroupShape

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

Syntax

'宣言
<ChildElementInfoAttribute(GetType(GroupShapeProperties))> _
<ChildElementInfoAttribute(GetType(NonVisualGroupShapeProperties))> _
<ChildElementInfoAttribute(GetType(GraphicFrame))> _
<ChildElementInfoAttribute(GetType(Shape))> _
<ChildElementInfoAttribute(GetType(GroupShape))> _
<ChildElementInfoAttribute(GetType(Picture))> _
<ChildElementInfoAttribute(GetType(ConnectionShape))> _
<ChildElementInfoAttribute(GetType(ContentPart), FileFormatVersions.Office2010)> _
Public Class GroupShape _
    Inherits OpenXmlCompositeElement
'使用
Dim instance As GroupShape
[ChildElementInfoAttribute(typeof(GroupShapeProperties))]
[ChildElementInfoAttribute(typeof(NonVisualGroupShapeProperties))]
[ChildElementInfoAttribute(typeof(GraphicFrame))]
[ChildElementInfoAttribute(typeof(Shape))]
[ChildElementInfoAttribute(typeof(GroupShape))]
[ChildElementInfoAttribute(typeof(Picture))]
[ChildElementInfoAttribute(typeof(ConnectionShape))]
[ChildElementInfoAttribute(typeof(ContentPart), FileFormatVersions.Office2010)]
public class GroupShape : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • NonVisualGroupShapeProperties <cdr:nvGrpSpPr>

  • GroupShapeProperties <cdr:grpSpPr>

  • Shape <cdr:sp>

  • GroupShape <cdr:grpSp>

  • GraphicFrame <cdr:graphicFrame>

  • ConnectionShape <cdr:cxnSp>

  • Picture <cdr:pic>

  • DocumentFormat.OpenXml.Office2010.Drawing.ChartDrawing.ContentPart <cdr14:contentPart>

[ISO/IEC 29500-1 初版]

21.3.2.13 grpSp (Group Shape)

This element specifies a group shape that represents many shapes grouped together. This shape is to be treated just 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 of the shapes that make up the group are specified just as they normally would. The idea behind grouping elements however is that a single transform can apply to many shapes at the same time.

[Example: Consider the following group shape.

<cdr:grpSp>
  <cdr:nvGrpSpPr>
    <cdr:cNvPr id="10" name="Group 9"/>
    <cdr:cNvGrpSpPr/>
    <cdr:nvPr/>
  </cdr:nvGrpSpPr>
  <cdr:grpSpPr>
    <a:xfrm>
      <a:off x="838200" y="990600"/>
      <a:ext cx="2426208" cy="978408"/>
      <a:chOff x="838200" y="990600"/>
      <a:chExt cx="2426208" cy="978408"/>
   </a:xfrm>
  </cdr:grpSpPr>
  <cdr:sp>
  …
  </cdr:sp>
  <cdr:sp>
  …
  </cdr:sp>
  <cdr:sp>
  …
  </cdr:sp>
</cdr:grpSp>

In the above example we see three shapes specified within a single group. These three shapes have their position and sizes specified just as they normally would within the shape tree. The generating application should apply the transformation after the bounding box for the group shape has been calculated. end example]

Parent Elements

absSizeAnchor (§21.3.2.1); grpSp (§21.3.2.13); relSizeAnchor (§21.3.2.21)

Child Elements

Subclause

cxnSp (Connection Shape)

§21.3.2.9

graphicFrame (Graphic Frame)

§21.3.2.12

grpSp (Group Shape)

§21.3.2.13

grpSpPr (Group Shape Properties)

§21.3.2.14

nvGrpSpPr (Non-Visual Group Shape Properties)

§21.3.2.17

pic (Picture)

§21.3.2.20

sp (Shape)

§21.3.2.22

[Note: The W3C XML Schema definition of this element's content model (CT_GroupShape) is located in §A.5.2. end note]

© ISO/IEC29500: 2008. 上記の引用はマイクロソフト (またはその代理) によって英語から日本語に翻訳されたものであり、ISO はこうした翻訳に対する責任を一切負いません。

Thread Safety

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

See Also

Reference

GroupShape Members

DocumentFormat.OpenXml.Drawing.ChartDrawing Namespace