[Table of Contents] [docx version]
Error! No text of specified style in document.
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 SpreadsheetDrawingML 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.
Parent Elements |
absoluteAnchor (§5.6.2.1); grpSp (§5.6.2.16); oneCellAnchor (§5.6.2.23); twoCellAnchor (§5.6.2.32) |
Child Elements |
Subclause |
nvSpPr (Non-Visual Properties for a Shape) |
§5.6.2.22 |
spPr (Shape Properties) |
§5.6.2.29 |
style (Shape Style) |
§5.6.2.30 |
txBody (Shape Text Body) |
§5.6.2.33 |
Attributes |
Description |
fLocksText (Lock Text Flag) |
This attribute indicates whether to allow text editing within this drawing object when the parent worksheet is protected.
The possible values for this attribute are defined by the XML Schema boolean datatype. |
fPublished (Publish to Server Flag) |
This attribute indicates whether the shape shall be published with the worksheet when sent to the server.
The possible values for this attribute are defined by the XML Schema boolean datatype. |
macro (Reference to Custom Function) |
This element specifies the custom function associated with the object. [Example: A macro script, add-in function, and so on. end example]
The format of this string shall be application-defined, and should be ignored if not understood.
[Example:
< ... macro="DoWork()" />
end example]
The possible values for this attribute are defined by the XML Schema string datatype. |
textlink (Text Link) |
This attribute specifies a formula linking to spreadsheet cell data.
The possible values for this attribute are defined by the XML Schema string datatype. |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Shape">
<sequence>
<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"/>
</sequence>
<attribute name="macro" type="xsd:string" use="optional"/>
<attribute name="textlink" type="xsd:string" use="optional"/>
<attribute name="fLocksText" type="xsd:boolean" use="optional" default="true"/>
<attribute name="fPublished" type="xsd:boolean" use="optional" default="false"/>
</complexType>