<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>; <spTree>

Child Elements


<extLst> (Extension List with Modification Flag)


<nvSpPr> (Non-Visual Properties for a Shape)


<spPr> (Shape Properties)


<style> (Shape Style)


<txBody> (Shape Text Body)




<useBgFill> (Use Background Fill)

Specifies that the shape fill should be set to that of the slide background surface.

[Note: This attribute does not set the fill of the shape to be transparent but instead sets it to be filled with the portion of the slide background that is directly behind it. End note]

The possible values for this attribute are defined by the XML Schema boolean datatype.

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Shape">
	<element name="nvSpPr" type="CT_ShapeNonVisual" minOccurs="1" maxOccurs="1"/>
	<element name="spPr" type="a:CT_ShapeProperties" minOccurs="1" maxOccurs="1"/>
	<element name="style" type="a:CT_ShapeStyle" minOccurs="0" maxOccurs="1"/>
	<element name="txBody" type="a:CT_TextBody" minOccurs="0" maxOccurs="1"/>
	<element name="extLst" type="CT_ExtensionListModify" minOccurs="0" maxOccurs="1"/>
	<attribute name="useBgFill" type="xsd:boolean" use="optional" default="false"/>