Shape class

Office 2013 and later

Shape. When the object is serialized out as xml, its qualified name is a:sp.

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

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

[ISO/IEC 29500-1 1st Edition]

sp (Shape)

This element specifies the existence of a single shape. A shape can either be a preset or a custom geometry, defined using the DrawingML framework. In addition to a geometry each shape can have both visual and non-visual properties attached. Text and corresponding styling information can also be attached to a shape. This shape is specified along with all other shapes within either the shape tree or group shape elements.

[Note: Shapes are the preferred mechanism for specifying text on a slide. end note]

Parent Elements

grpSp (§20.1.2.2.20); lockedCanvas (§20.3.2.1)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

nvSpPr (Non-Visual Properties for a Shape)

§20.1.2.2.29

spPr (Shape Properties)

§20.1.2.2.35

style (Shape Style)

§20.1.2.2.37

txSp (Text Shape)

§20.1.2.2.41

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

© ISO/IEC29500: 2008.

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: