Shape Class
Shape.When the object is serialized out as xml, its qualified name is dgm:shape.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.Diagrams.Shape
Namespace: DocumentFormat.OpenXml.Drawing.Diagrams
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(AdjustList))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class Shape _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As Shape
[ChildElementInfoAttribute(typeof(AdjustList))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class Shape : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
AdjustList <dgm:adjLst>
ExtensionList <dgm:extLst>
[ISO/IEC 29500-1 1st Edition]
21.4.2.27 shape (Shape)
The shape displayed by the containing layout node. Not all layout nodes display shapes.
Parent Elements |
---|
else (§21.4.2.12); forEach (§21.4.2.14); if (§21.4.2.15); layoutNode (§21.4.2.19) |
Child Elements |
Subclause |
---|---|
adjLst (Shape Adjust List) |
§21.4.2.2 |
extLst (Extension List) |
§21.4.2.13 |
Attributes |
Description |
---|---|
blip (Relationship to Image Part) Namespace: .../officeDocument/2006/relationships |
Specifies the relationship ID of the explicit relationship to an image which shall be used as the image for the contents of this shape. This relationship shall be of type https://schemas.openxmlformats.org/officeDocument/2006/relationships/image or the document shall be considered non-conformant. The possible values for this attribute are defined by the ST_RelationshipId simple type (§22.8.2.1). |
blipPhldr (Image Placeholder) |
Specifies whether to use an image placeholder or not. The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
hideGeom (Hide Geometry) |
When set to "true", hides the geometry of the shape. The text is still visible. The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
lkTxEntry (Prevent Text Editing) |
Prevents text editing on this shape. The possible values for this attribute are defined by the W3C XML Schema boolean datatype. |
rot (Rotation) |
Rotates the shape by the specified number of degrees. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
type (Shape Type) |
Specifies the type of shape. The possible values for this attribute are defined by the ST_LayoutShapeType simple type (§21.4.7.41). |
zOrderOff (Z-Order Offset) |
Offsets the shape from its default z-order stacking, which is based on the order the layout nodes appear in the XML. The possible values for this attribute are defined by the W3C XML Schema int datatype. |
[Note: The W3C XML Schema definition of this element’s content model (CT_Shape) is located in §A.5.3. end note]
© ISO/IEC29500: 2008.
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.